-
Notifications
You must be signed in to change notification settings - Fork 0
/
zprofile
53 lines (45 loc) · 1.25 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
source $HOME/.profile
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.bin" ] ; then
PATH="$HOME/.bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
# nvm setup
if [ -d "$HOME/.nvm" ] ; then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi
if [ -f "$HOME/.aliases" ] ; then
source $HOME/.aliases
fi
if [ -f "$HOME/.variables" ] ; then
source $HOME/.variables
fi
# fzf
if [ -d "/usr/share/doc/fzf/examples" ] ; then
source /usr/share/doc/fzf/examples/key-bindings.zsh
source /usr/share/doc/fzf/examples/completion.zsh
fi
# autojump
if [ -d "/usr/share/autojump/" ] ; then
source /usr/share/autojump/autojump.sh
fi
# source autocompletions
if [ -d "$HOME/.config/completions/zsh" ] ; then
for f in $HOME/.config/completions/zsh/*; do source $f; done
fi
# poetry setup
if [ -d "$HOME/.poetry" ] ; then
export PATH="$HOME/.poetry/bin:$PATH"
fi
# dotnet
if [ -d "$HOME/.dotnet" ] ; then
PATH="$HOME/.dotnet:$PATH"
fi