kickstart.nvim/.zshrc

46 lines
1.1 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
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"
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
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
2021-12-13 10:09:20 -05:00
if type rvm &> /dev/null; then
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.
export PATH="$PATH:$HOME/.rvm/bin"
fi
2021-09-26 20:30:29 -04:00