diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-12 10:43:44 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-12 10:43:44 +1300 |
commit | 532acb0ecf85ac3af220411beb4e3d74860c80fe (patch) | |
tree | d7a7b3c4f9956a4a08d81ad656a7d944a98c37c2 /bash | |
parent | Remove .dat from text filename exclusions (diff) | |
download | dotfiles-532acb0ecf85ac3af220411beb4e3d74860c80fe.tar.gz dotfiles-532acb0ecf85ac3af220411beb4e3d74860c80fe.zip |
Make host variable local to function
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bash_completion.d/_ssh_config_hosts.bash | 1 |
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 |