aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/path.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-15 17:43:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-15 17:43:02 +1200
commit8136f72bae7588fb7048adcc0a5713814011aaf0 (patch)
tree71af652359fe85032bb17f9936d31fbfcae21738 /bash/bashrc.d/path.bash
parentAdd --binary-files to default grep(1) options (diff)
downloaddotfiles-8136f72bae7588fb7048adcc0a5713814011aaf0.tar.gz
dotfiles-8136f72bae7588fb7048adcc0a5713814011aaf0.zip
Improve directory completion for $PATH
Diffstat (limited to 'bash/bashrc.d/path.bash')
-rw-r--r--bash/bashrc.d/path.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash
index cbeec59b..4ffdf0bd 100644
--- a/bash/bashrc.d/path.bash
+++ b/bash/bashrc.d/path.bash
@@ -188,12 +188,14 @@ _path() {
# Complete with one directory
insert|i|append|add|a|check|c)
if ((COMP_CWORD == 2)) ; then
+ compopt -o filenames
COMPREPLY=( $(compgen -A directory -- "$word") )
fi
;;
# Complete with any number of directories
set|s)
+ compopt -o filenames
COMPREPLY=( $(compgen -A directory -- "$word") )
;;