env (5496B)
1 #!/bin/sh 2 # vim: foldmethod=marker foldlevel=0 3 export DOTFILES="$HOME/.dotfiles" 4 [ -f "$DOTFILES/shell/secret_env" ] && . "$DOTFILES/shell/secret_env" 5 6 if [ -n "$VIM_TERMINAL" ]; then EDITOR=vimsend 7 elif [ -n "$INSIDE_EMACS" ]; then EDITOR=emacsclient 8 elif command -v nvim >/dev/null 2>&1; then EDITOR="$(command -v nvim)" 9 else EDITOR="$(command -v vim)"; fi 10 export EDITOR 11 12 export CHOOSER=fzfchoose 13 export MUSIC_DIR="/Volumes/HDD/Music/Libraries/Mine" 14 export PAGER="less" 15 export LESS="-FRiX" 16 17 export LANG="en_US.UTF-8" 18 export LC_ALL="en_US.UTF-8" 19 export LC_COLLATE="en_US.UTF-8" 20 export LC_CTYPE="UTF-8" 21 export LC_MESSAGES="en_US.UTF-8" 22 export LC_MONETARY="en_US.UTF-8" 23 export LC_NUMERIC="en_US.UTF-8" 24 export LC_TIME="en_US.UTF-8" 25 26 export TTRV_BROWSER=~/.scripts/linkhandler 27 if command -v brave >/dev/null 2>&1; then 28 export BROWSER=brave 29 else 30 export BROWSER="open" 31 fi 32 33 if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then 34 export WORKON_HOME=$HOME/.config/virtualenvs 35 VIRTUALENVWRAPPER_PYTHON=$(which python3); export VIRTUALENVWRAPPER_PYTHON 36 export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh 37 fi 38 39 export WWW_HOME="https://tab.alex.balgavy.eu" 40 # Icons for lf {{{1 41 export LF_ICONS="\ 42 bd=:\ 43 cd=:\ 44 di=:\ 45 st=:\ 46 tw=:\ 47 ow=:\ 48 pi=ﳣ:\ 49 fi=:\ 50 sg=:\ 51 su=:\ 52 so=杻:\ 53 ln=:\ 54 or=:\ 55 ex=:\ 56 *.vimrc=:\ 57 *.viminfo=:\ 58 *.gitignore=:\ 59 *.c=:\ 60 *.cc=:\ 61 *.clj=:\ 62 *.coffee=:\ 63 *.cpp=:\ 64 *.css=:\ 65 *.d=:\ 66 *.dart=:\ 67 *.erl=:\ 68 *.exs=:\ 69 *.fs=:\ 70 *.go=:\ 71 *.h=:\ 72 *.hh=:\ 73 *.hpp=:\ 74 *.hs=:\ 75 *.html=:\ 76 *.java=:\ 77 *.jl=:\ 78 *.js=:\ 79 *.json=:\ 80 *.lua=:\ 81 *.md=:\ 82 *.php=:\ 83 *.pl=:\ 84 *.pro=:\ 85 *.py=:\ 86 *.rb=:\ 87 *.rs=:\ 88 *.scala=:\ 89 *.ts=:\ 90 *.vim=:\ 91 *.cmd=:\ 92 *.ps1=:\ 93 *.sh=:\ 94 *.bash=:\ 95 *.zsh=:\ 96 *.fish=:\ 97 *.tar=:\ 98 *.tgz=:\ 99 *.arc=:\ 100 *.arj=:\ 101 *.taz=:\ 102 *.lha=:\ 103 *.lz4=:\ 104 *.lzh=:\ 105 *.lzma=:\ 106 *.tlz=:\ 107 *.txz=:\ 108 *.tzo=:\ 109 *.t7z=:\ 110 *.zip=:\ 111 *.z=:\ 112 *.dz=:\ 113 *.gz=:\ 114 *.lrz=:\ 115 *.lz=:\ 116 *.lzo=:\ 117 *.xz=:\ 118 *.zst=:\ 119 *.tzst=:\ 120 *.bz2=:\ 121 *.bz=:\ 122 *.tbz=:\ 123 *.tbz2=:\ 124 *.tz=:\ 125 *.deb=:\ 126 *.rpm=:\ 127 *.jar=:\ 128 *.war=:\ 129 *.ear=:\ 130 *.sar=:\ 131 *.rar=:\ 132 *.alz=:\ 133 *.ace=:\ 134 *.zoo=:\ 135 *.cpio=:\ 136 *.7z=:\ 137 *.rz=:\ 138 *.cab=:\ 139 *.wim=:\ 140 *.swm=:\ 141 *.dwm=:\ 142 *.esd=:\ 143 *.jpg=:\ 144 *.jpeg=:\ 145 *.mjpg=:\ 146 *.mjpeg=:\ 147 *.gif=:\ 148 *.bmp=:\ 149 *.pbm=:\ 150 *.pgm=:\ 151 *.ppm=:\ 152 *.tga=:\ 153 *.xbm=:\ 154 *.xpm=:\ 155 *.tif=:\ 156 *.tiff=:\ 157 *.png=:\ 158 *.svg=:\ 159 *.svgz=:\ 160 *.mng=:\ 161 *.pcx=:\ 162 *.mov=:\ 163 *.mpg=:\ 164 *.mpeg=:\ 165 *.m2v=:\ 166 *.mkv=:\ 167 *.webm=:\ 168 *.ogm=:\ 169 *.mp4=:\ 170 *.m4v=:\ 171 *.mp4v=:\ 172 *.vob=:\ 173 *.qt=:\ 174 *.nuv=:\ 175 *.wmv=:\ 176 *.asf=:\ 177 *.rm=:\ 178 *.rmvb=:\ 179 *.flc=:\ 180 *.avi=:\ 181 *.fli=:\ 182 *.flv=:\ 183 *.gl=:\ 184 *.dl=:\ 185 *.xcf=:\ 186 *.xwd=:\ 187 *.yuv=:\ 188 *.cgm=:\ 189 *.emf=:\ 190 *.ogv=:\ 191 *.ogx=:\ 192 *.aac=:\ 193 *.au=:\ 194 *.flac=:\ 195 *.m4a=:\ 196 *.mid=:\ 197 *.midi=:\ 198 *.mka=:\ 199 *.mp3=:\ 200 *.mpc=:\ 201 *.ogg=:\ 202 *.ra=:\ 203 *.wav=:\ 204 *.oga=:\ 205 *.opus=:\ 206 *.spx=:\ 207 *.xspf=:\ 208 *.pdf=:\ 209 *.nix=:\ 210 " 211 # Force use of XDG Base Directory {{{1 212 export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" 213 [ -d "$XDG_CONFIG_HOME" ] || mkdir -p "$XDG_CONFIG_HOME" 214 export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" 215 [ -d "$XDG_DATA_HOME" ] || mkdir -p "$XDG_DATA_HOME" 216 export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" 217 [ -d "$XDG_CACHE_HOME" ] || mkdir -p "$XDG_CACHE_HOME" 218 export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}" 219 [ -d "$XDG_STATE_HOME" ] || mkdir -p "$XDG_STATE_HOME" 220 221 alias irssi='irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi' 222 alias tmux='tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf' 223 alias w3m='w3m -config $XDG_CONFIG_HOME/w3m/config -bookmark $XDG_CONFIG_HOME/w3m/bookmark.html' 224 alias monero-wallet-cli='monero-wallet-cli --config-file ~/.config/bitmonero/monero-wallet-cli.conf' 225 export GOPATH="$XDG_DATA_HOME"/go 226 export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter" 227 export BUNDLE_USER_HOME="$XDG_CONFIG_HOME/bundle" 228 export BUNDLE_USER_CACHE="$XDG_CACHE_HOME/bundle" 229 export _Z_DATA="$XDG_CACHE_HOME/z/z-data" 230 export HTTPIE_CONFIG_DIR="$XDG_CONFIG_HOME/httpie" 231 export CABAL_DIR="$XDG_CONFIG_HOME/cabal" 232 export GHCUP_INSTALL_BASE_PREFIX="$XDG_CONFIG_HOME" 233 export ZDOTDIR="$XDG_CONFIG_HOME/zsh" 234 export GEM_HOME="$XDG_DATA_HOME/gem" 235 export GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem" 236 export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config" 237 export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" 238 export R_PROFILE_USER="$XDG_CONFIG_HOME/R/Rprofile" 239 export MAILCAPS="$XDG_CONFIG_HOME/mailcap" 240 eval "$(perl -I$XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5)" 241 alias glow='glow --config "$XDG_CONFIG_HOME/glow/glow.yml"' 242 export RUSTUP_HOME="$XDG_DATA_HOME/rustup" 243 export CARGO_HOME="$XDG_DATA_HOME/cargo" 244 export PYENV_ROOT="$XDG_DATA_HOME/pyenv" 245 export RBENV_ROOT="$XDG_DATA_HOME/rbenv" 246 export ANDROID_HOME="$XDG_DATA_HOME/android" 247 export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker" 248 export ELECTRUMDIR="$XDG_DATA_HOME/electrum" 249 alias gdb='gdb -n -x $XDG_CONFIG_HOME/gdb/init' 250 export GDBHISTFILE="$XDG_CONFIG_HOME"/gdb/.gdb_history 251 export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc 252 export IPYTHONDIR="${XDG_CONFIG_HOME}/ipython" 253 export LESSHISTFILE="$XDG_CACHE_HOME"/less/history 254 export STACK_ROOT="$XDG_DATA_HOME"/stack 255 export VAGRANT_HOME="$XDG_DATA_HOME"/vagrant