Fix lunchy autocompletion

This commit is contained in:
2019-01-15 18:40:43 +00:00
parent f548cecf9f
commit de274476bb

View File

@@ -60,11 +60,9 @@ rbenv() {
}
# lunchy auto-completion
if [ -n "$BASH_VERSION" ]; then
if which gem &> /dev/null && gem which lunchy &> /dev/null; then
LUNCHY_DIR="$(dirname "$(gem which lunchy)")/../extras"
if [ -f "$LUNCHY_DIR/lunchy-completion.bash" ]; then
source "$LUNCHY_DIR/lunchy-completion.bash"
fi
if which gem &> /dev/null && gem which lunchy &> /dev/null; then
LUNCHY_DIR="$(dirname `gem which lunchy`)/../extras"
if [ -f "$LUNCHY_DIR/lunchy-completion.zsh" ]; then
. "$LUNCHY_DIR/lunchy-completion.zsh"
fi
fi