summaryrefslogtreecommitdiff
path: root/bash_completion
diff options
context:
space:
mode:
authorFreddy Vulto <fvulto@gmail.com>2009-12-02 21:15:50 +0100
committerFreddy Vulto <fvulto@gmail.com>2009-12-02 21:15:50 +0100
commit048e27bf283e08be6762fe2090be224fc6c98fc3 (patch)
treeace3ab1c3eb3620241824bae95bc9c74b993b6c9 /bash_completion
parentc920661b5e4e6a7e8536cbe497abf13d9bd1bbfd (diff)
parentab74bd4da988e17665ac2769ddedf23980e05ee9 (diff)
downloadbash-completion-048e27bf283e08be6762fe2090be224fc6c98fc3.tar.gz
Merge branch 'master' of git+ssh://fvu-guest@git.debian.org/git/bash-completion/bash-completion
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion2
1 files changed, 2 insertions, 0 deletions
diff --git a/bash_completion b/bash_completion
index a29138cc..12a4f3fb 100644
--- a/bash_completion
+++ b/bash_completion
@@ -456,6 +456,8 @@ _filedir()
fi
COMPREPLY=( "${COMPREPLY[@]}" "${toks[@]}" )
+ [ ${#COMPREPLY[@]} -ne 0 ] && type compopt &>/dev/null && \
+ compopt -o filenames
} # _filedir()