Update various dotfiles

This commit is contained in:
2016-01-31 19:51:46 +00:00
parent 185157d0b9
commit b84b729e6d
6 changed files with 25 additions and 8 deletions

View File

@@ -39,7 +39,10 @@ elif [ -s "$HOME/.rvm/scripts/rvm" ]; then
source "$HOME/.rvm/scripts/rvm"
fi
# lunchy auto-completion
LUNCHY_DIR="$(dirname `gem which lunchy`)/../extras"
if [ -f "$LUNCHY_DIR/lunchy-completion.bash" ]; then
if [ -n "$BASH_VERSION" ] && [ -f "$LUNCHY_DIR/lunchy-completion.bash" ]; then
source "$LUNCHY_DIR/lunchy-completion.bash"
elif [ -n "$ZSH_VERSION" ] && [ -f "$LUNCHY_DIR/lunchy-completion.zsh" ]; then
source "$LUNCHY_DIR/lunchy-completion.zsh"
fi