kickstart.nvim/.zshrc

61 lines
1.5 KiB
Bash
Raw Normal View History

2021-12-13 10:09:20 -05:00
2021-12-12 09:30:54 -05:00
if [ ! -f $HOME/antigen/antigen.zsh ]; then
2021-12-13 10:09:20 -05:00
cat <<EOF
2021-12-12 09:30:54 -05:00
Antigen not installed!
git clone https://github.com/zsh-users/antigen.git ~/antigen
EOF
else
source "$HOME/antigen/antigen.zsh"
2021-09-26 20:30:29 -04:00
2022-01-20 21:27:07 -05:00
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
export NVM_COMPLETION=true
export NVM_LAZY_LOAD=true
export NVM_AUTO_USE=true
antigen bundle lukechilds/zsh-nvm
2022-01-16 12:37:12 -05:00
antigen bundle zsh-users/zsh-autosuggestions
2022-01-15 18:53:11 -05:00
antigen use oh-my-zsh
antigen bundle arialdomartini/oh-my-git
antigen theme arialdomartini/oh-my-git-themes oppa-lana-style
antigen apply
2021-12-12 09:30:54 -05:00
fi
alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME"
if [ ! -f ~/.fzf.zsh ]; then
2021-12-13 10:09:20 -05:00
cat<<EOF
2021-12-12 09:30:54 -05:00
FZF Not installed!
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
EOF
else
source ~/.fzf.zsh
fi
2021-09-26 20:30:29 -04:00
2022-01-15 18:53:11 -05:00
if [ ! type rvm &> /dev/null ]; then
2021-12-13 10:09:20 -05:00
cat<<EOF
2021-12-12 09:30:54 -05:00
RVM Not installed. You should probably do this:
2021-09-26 20:30:29 -04:00
2021-12-12 09:30:54 -05:00
mkdir -p ~/.rvm/src && cd ~/.rvm/src && rm -rf ./rvm && \
git clone --depth 1 https://github.com/rvm/rvm.git && \
cd rvm && ./install
EOF
else
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
2022-01-16 12:37:12 -05:00
PATH="$PATH:$HOME/.rvm/bin"
2021-12-12 09:30:54 -05:00
fi
2021-09-26 20:30:29 -04:00
2022-01-16 12:37:12 -05:00
# set PATH so it includes user's private bin if it exists
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
export PATH