-
Notifications
You must be signed in to change notification settings - Fork 0
/
zprofile
executable file
·37 lines (28 loc) · 1.21 KB
/
zprofile
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
# xdg base directories
export XDG_CACHE_HOME="$HOME"/.cache
export XDG_CONFIG_HOME="$DOTFILES"/config
export XDG_DATA_HOME="$HOME"/.local/share
# xinit
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
#####
export CARGO_HOME="$XDG_CONFIG_HOME"/cargo
[ -s "$CARGO_HOME/env" ] && . "$CARGO_HOME/env"
export NVM_DIR="$XDG_DATA_HOME"/nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
#####
export ATOM_HOME="$XDG_CONFIG_HOME"/atom
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export GEM_HOME="$XDG_DATA_HOME"/gem
export GEM_HOME="$XDG_CACHE_HOME"/gem
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
export KDEHOME="$XDG_CONFIG_HOME"/kde
export NUGET_PACKAGES="$XDG_CACHE_HOME"/nuget
export PYLINTHOME="$XDG_CACHE_HOME"/pylint
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
export WGETRC="$XDG_CONFIG_HOME"/wgetrc
#####
[ -f $ZDOTDIR/zprofiles/zprofile-$(uname -s).zsh ] && . $ZDOTDIR/zprofiles/zprofile-$(uname -s).zsh
[ -f $ZDOTDIR/zprofiles/zprofile-$(uname -s)-$(uname -n).zsh ] &&. $ZDOTDIR/zprofiles/zprofile-$(uname -s)-$(uname -n).zsh