-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
82 lines (72 loc) · 2.98 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
export TMPDIR="$HOME/.tmp"
# Default applications
export EDITOR="nvim"
export VISUAL="nvim"
export BROWSER="firefox"
export TERMINAL="foot"
# Colored man pages using less as a viewer
export MANPAGER="less -R --use-color -Dd+r -Du+b"
# Opt out of Microsoft spyware
export DOTNET_CLI_TELEMETRY_OPTOUT="1"
# XDG
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_DOWNLOAD_DIR="$HOME/downloads"
export XDG_DATA_DIRS="/usr/local/share:/usr/share"
export XDG_CONFIG_DIRS="/etc/xdg"
# Add stuff to path.
export PATH="$XDG_DATA_HOME/node_modules/bin:$PATH"
export PATH="$HOME/.local/share/cargo/bin:$PATH"
export PATH="$HOME/.gem/ruby/2.7.0/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/jetbrains-bin:$PATH"
export PATH="$HOME/.dotnet/tools/:$PATH"
export PATH="$HOME/.nimble/bin:$PATH"
# Moving stuff to XDG_CONFIG_HOME
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export PYENV_ROOT="$XDG_CONFIG_HOME/pyenv"
export RBENV_ROOT="$XDG_CONFIG_HOME/rbenv"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
export IRBRC="$XDG_CONFIG_HOME/irb/irbrc"
export PSQLRC="$XDG_CONFIG_HOME/pg/psqlrc"
export PGPASSFILE="$XDG_CONFIG_HOME/pg/pgpass"
export PGSERVICEFILE="$XDG_CONFIG_HOME/pg/pg_service.conf"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export KDEHOME="$XDG_CONFIG_HOME/kde"
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME/bundle"
export XCOMPOSEFILE="$XDG_CONFIG_HOME/XCompose"
export MPV_HOME="$XDG_CONFIG_HOME/mpv"
# Moving stuff to XDG_DATA_HOME
export GOPATH="$XDG_DATA_HOME/go"
export UNISON="$XDG_DATA_HOME/unison"
export MYSQL_HISTFILE="$XDG_DATA_HOME/mysql_history"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export STACK_ROOT="$XDG_DATA_HOME/stack"
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
export NVM_DIR="$XDG_DATA_HOME/nvm"
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME/bundle"
export GEM_HOME="$XDG_DATA_HOME/gem"
export npm_config_prefix="$XDG_DATA_HOME/node_modules"
# Moving stuff to XDG_CACHE_HOME
export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
export PSQL_HISTORY="$XDG_CACHE_HOME/pg/psql_history"
export PYLINTHOME="$XDG_CACHE_HOME/pylint"
export ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority"
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME/bundle"
export GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem"
export NODE_REPL_HISTORY="$XDG_CACHE_HOME/node_repl_history"
# bat theme
mkdir -p "$XDG_CACHE_HOME/bat" # create cache folder if it doesn't exist
export BAT_CACHE_PATH="$XDG_CACHE_HOME/bat"
export BAT_THEME="Catppuccin Latte"
[ -d "/home/terminal/.local/share/cargo/env" ] && source "/home/terminal/.local/share/cargo/env"
# Hotfix for ZSH rsync autocompletion
# See: https://www.zsh.org/mla/workers/2022/msg00820.html
export RSYNC_OLD_ARGS=1