-
Notifications
You must be signed in to change notification settings - Fork 16
/
.zshenv
57 lines (46 loc) · 1.1 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
# Ubuntu: Skip the global compinit
skip_global_compinit=1
# Ubuntu: skip /etc/profile.d ubuntu welcome message
export MOTD_SHOWN=1
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
if [ -d $HOME/.dot-config/.shell/vars.d/ ]; then
# These vars are at least used by fzf.sh
if [ -r $HOME/.dot-config/.shell/vars.d/ignore.sh ]; then
. $HOME/.dot-config/.shell/vars.d/ignore.sh
fi
for i in $HOME/.dot-config/.shell/vars.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
if [ -n XDG_CONFIG_HOME ]; then
export XDG_CONFIG_HOME="$HOME/.config"
fi
# MichaelAquilina/zsh-autoswitch-virtualenv
export AUTOSWITCH_SILENT=1
pathprepend() {
for ARG in "$@"
do
if [ -d "$ARG" ] && [[ ":$PATH:" != *":$ARG:"* ]]; then
PATH="$ARG${PATH:+":$PATH"}"
fi
done
}
pathprepend $HOME/bin
pathprepend $HOME/.local/bin
if which yarn 1>/dev/null 2>&1; then
pathprepend `yarn global bin`
fi
export PYTHONSTARTUP=$HOME/.pythonrc
if [[ -f $HOME/.cargo/env ]]; then
. $HOME/.cargo/env
fi