From 25f5190cd0916b961767d02a04c1bdecbd43a164 Mon Sep 17 00:00:00 2001 From: Juergen Buddy Hoffmann Date: Tue, 25 Feb 2014 10:33:34 +0100 Subject: [PATCH] Removing trailing slashes as explained here: http://superuser.com/questions/564716/bash-completion-for-filename-patterns-or-directories --- completions/jenv.bash | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/completions/jenv.bash b/completions/jenv.bash index ec67f5b..3ad54b7 100644 --- a/completions/jenv.bash +++ b/completions/jenv.bash @@ -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