-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
63 lines (48 loc) · 1.54 KB
/
.zshrc
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
source ~/.shrc
TMP_PATH=/tmp/${USER}/zsh
UPDATE_LOCK=${TMP_PATH}/update.lock
mkdir --parent ${TMP_PATH}
if [[ ! -f ${UPDATE_LOCK} ]]; then
touch ${UPDATE_LOCK}
echo "Update: Dotfiles"
cd ~/p/github.com/soullivaneuh/dotfiles && make update deploy && cd -
fi
if [[ ! -a ~/.zplug ]]; then
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
fi
if [[ ! -a ~/.tmux/plugins/tpm ]]; then
mkdir --parent ~/.tmux/plugins
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
export ZPLUG_LOADFILE=~/.zsh/zplug.zsh
source ~/.zplug/init.zsh
LOAD_FLAGS=""
if ! zplug check --verbose; then
LOAD_FLAGS="--verbose"
zplug install
fi
if [[ -f ~/.zshrc.local ]]; then
source ~/.zshrc.local
fi
zplug load ${LOAD_FLAGS}
source ~/.alias
eval "$(tmuxifier init -)"
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
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
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/terraform terraform
# bun completions
[ -s "/home/sullivan/.bun/_bun" ] && source "/home/sullivan/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# pnpm
export PNPM_HOME="/home/sullivan/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end