1
1
Fork 0
dotfiles/zshrc
2017-10-16 09:13:37 -05:00

37 lines
800 B
Bash

autoload colors zsh/terminfo
colors
precmd() { print "" }
PS1="⟩"
RPS1="%{$fg[magenta]%}%20<...<%~%<<%{$reset_color%}"
# Auto start tmux
if [ "$TMUX" = "" ]; then tmux; fi
# Auto CD
setopt auto_cd
# Typo Correction
setopt correctall
alias git status='nocorrect git status'
# Plugins
export NVM_AUTO_USE=true
if [[ ! -f ~/.antigen.zsh ]]; then
curl https://raw.githubusercontent.com/zsh-users/antigen/master/antigen.zsh > ~/.antigen.zsh
fi
source ~/.antigen.zsh
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle git
antigen bundle lukechilds/zsh-nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# custom computer config
if [ -f ~/.zshrc.custom ]; then
source ~/.zshrc.custom
fi