Skip to content

Commit

Permalink
Removing trailing slashes as explained here: http://superuser.com/que…
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoffma committed Feb 25, 2014
1 parent 8dbde36 commit 25f5190
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions completions/jenv.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ _jenv() {
unset words[0]
local completions=$(jenv completions "${words[@]}")
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
# Prevents the addition of a trailing space when completing a path
[[ $COMPREPLY = */ ]] && complete -o nospace
fi
}

complete -F _jenv jenv
complete -o nospace -F _jenv jenv

0 comments on commit 25f5190

Please sign in to comment.