diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-14 17:52:43 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-14 17:52:43 +1300 |
commit | f99ac7d53e90de32007f12e76c2b1edcb3c98a7a (patch) | |
tree | 7601c49e4718b751bdf1d12f0a8ea09065a4fba6 /bash | |
parent | Switch to a faster method of array appending (diff) | |
download | dotfiles-f99ac7d53e90de32007f12e76c2b1edcb3c98a7a.tar.gz dotfiles-f99ac7d53e90de32007f12e76c2b1edcb3c98a7a.zip |
Localise a stray variable
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/path.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash index 94c6207c..f6a9c5b0 100644 --- a/bash/bashrc.d/path.bash +++ b/bash/bashrc.d/path.bash @@ -185,6 +185,7 @@ _path() { # Complete operation as first word 1) + local cmd for cmd in help list insert append remove set check ; do [[ $cmd == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue COMPREPLY[${#COMPREPLY[@]}]=$cmd |