diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-15 17:43:02 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-15 17:43:02 +1200 |
commit | 8136f72bae7588fb7048adcc0a5713814011aaf0 (patch) | |
tree | 71af652359fe85032bb17f9936d31fbfcae21738 /bash/bashrc.d/path.bash | |
parent | Add --binary-files to default grep(1) options (diff) | |
download | dotfiles-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.bash | 2 |
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") ) ;; |