aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/path.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-14 17:52:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-14 17:52:43 +1300
commitf99ac7d53e90de32007f12e76c2b1edcb3c98a7a (patch)
tree7601c49e4718b751bdf1d12f0a8ea09065a4fba6 /bash/bashrc.d/path.bash
parentSwitch to a faster method of array appending (diff)
downloaddotfiles-f99ac7d53e90de32007f12e76c2b1edcb3c98a7a.tar.gz
dotfiles-f99ac7d53e90de32007f12e76c2b1edcb3c98a7a.zip
Localise a stray variable
Diffstat (limited to 'bash/bashrc.d/path.bash')
-rw-r--r--bash/bashrc.d/path.bash1
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