-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
executable file
·96 lines (81 loc) · 3.73 KB
/
.zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Set XDG variables (because some applications to not use proper fallbacks)
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_CACHE_HOME="$HOME/.cache"
#export XDG_RUNTIME_DIR=
# Zsh
export ZSH="${XDG_DATA_HOME:-$HOME/.local/share}/oh-my-zsh"
export ZSH_CUSTOM="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
if [ -f /etc/os-release ]; then
export DISTRO="$(awk -F'=' '/^ID/ { print $2 }' /etc/os-release)"
fi
# Perl
if [ -d ~/perl5 ]; then
export PERL5LIB="$HOME/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"
export PERL_LOCAL_LIB_ROOT="$HOME/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"
export PERL_MB_OPT="--install_base \"$HOME/perl5\""
export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"
export PATH="$PATH:$HOME/perl5/bin"
fi
# McFly options
export MCFLY_RESULTS=50
export MCFLY_RESULTS_SORT=LAST_RUN
export MCFLY_DISABLE_MENU=TRUE
export MCFLY_FUZZY=0
export MCFLY_KEY_SCHEME=vim
# Android
export ANDROID_HOME="$HOME/Android/Sdk"
# Path
export PATH="$HOME/.local/bin:$HOME/scripts:$HOME/.local/share/cargo/bin:$HOME/.cargo/bin:$NPM_PACKAGES/bin:/opt/cuda/bin:/usr/bin/sbin:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools:$PATH"
# Java options
export JAVA_HOME='/usr/lib/jvm/java-11-openjdk'
# WARNING: I have observed the _JAVA_OPTIONS variable causing some very weird crashes while
# building some gradle libraries and it generally seems to be unsupported. When you need to use it, consider
# setting it only for a particular program (e.g. put it into the .desktop file of the program).
#export _JAVA_OPTIONS=" -Djava.util.prefs.userRoot='$XDG_CONFIG_HOME/java -Dawt.useSystemAAFontSettings=on"
# Firefox
export MOZ_ENABLE_WAYLAND=1
#export MOZ_USE_XINPUT2=1 # Enhance touchpad scrolling on X11
# Plasma options
#export KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1
#export POWERDEVIL_NO_DDCUTIL=1 # Fix powerdevil bug
#export GDK_DPI_SCALE=1.25
#export PLASMA_USE_QT_SCALING=1 # For 4K monitor
export GTK_USE_PORTAL=1 # Needs xdg-portal-kde package to work
#export __GL_MaxFramesAllowed=1 # Fix tearing
#export QT_AUTO_SCREEN_SCALE_FACTOR=1 # Fix sizing problems
# Because Libreoffice looks shit in high dpi currently without this
SAL_USE_VCLPLUGIN=gtk3
# Expermimental Qt highdpi options (>=Qt 6.4)
#export QT_WIDGETS_HIGHDPI_DOWNSCALE=1
#export QT_WIDGETS_RHI=1
# Electron
export ELECTRON_OZONE_PLATFORM_HINT=auto # Enable wayland (auto, wayland)
# Editor
export VISUAL=nvim
export EDITOR=nvim
# User nvim as the man pager
export MANPAGER='nvim +Man\!'
# Other
export MOZ_PLUGIN_PATH="/usr/lib/mozilla/plugins"
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.sock
export WLR_NO_HARDWARE_CURSORS=1
# Force XDG conventions
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wgetrc"
export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default"
export VSCODE_PORTABLE="${XDG_DATA_HOME:-$HOME/.local/share}/vscode"
#export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority"
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtkrc-2.0"
export GRADLE_USER_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/gradle"
export CUDA_CACHE_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/nv"
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
#export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/npm/npmrc"
export TEXMFHOME="${XDG_DATA_HOME:-$HOME/.local/share}/texmf"
export TEXMFVAR="${XDG_CACHE_HOME:-$HOME/.cache}/texlive/texmf-var"
export TEXMFCONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/texlive/texmf-config"
export DOCKER_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/docker"
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
export GOMODCACHE="${XDG_CACHE_HOME:-$HOME/.cache}/go/mod"
export DVDCSS_CACHE="${XDG_DATA_HOME:-$HOME/.local/share}/dvdcss"
export PARALLEL_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/parallel"