aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-12 10:43:44 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-12 10:43:44 +1300
commit532acb0ecf85ac3af220411beb4e3d74860c80fe (patch)
treed7a7b3c4f9956a4a08d81ad656a7d944a98c37c2 /bash/bash_completion.d
parentRemove .dat from text filename exclusions (diff)
downloaddotfiles-532acb0ecf85ac3af220411beb4e3d74860c80fe.tar.gz
dotfiles-532acb0ecf85ac3af220411beb4e3d74860c80fe.zip
Make host variable local to function
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r--bash/bash_completion.d/_ssh_config_hosts.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/bash_completion.d/_ssh_config_hosts.bash b/bash/bash_completion.d/_ssh_config_hosts.bash
index 02e9af06..8f45c412 100644
--- a/bash/bash_completion.d/_ssh_config_hosts.bash
+++ b/bash/bash_completion.d/_ssh_config_hosts.bash
@@ -14,6 +14,7 @@ _ssh_config_hosts() {
done
# Generate completion reply
+ local host
for host in "${hosts[@]}" ; do
[[ $host == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue
COMPREPLY[${#COMPREPLY[@]}]=$host