aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ssh.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/ssh.bash')
-rw-r--r--bash/bashrc.d/ssh.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/ssh.bash b/bash/bashrc.d/ssh.bash
index 6ce73d24..9eaf4389 100644
--- a/bash/bashrc.d/ssh.bash
+++ b/bash/bashrc.d/ssh.bash
@@ -5,6 +5,7 @@ _ssh() {
# Bail if the configuration file is illegible
local config=$HOME/.ssh/config
if [[ ! -r $config ]]; then
+ COMPREPLY=()
return 1
fi
@@ -20,5 +21,5 @@ _ssh() {
# Generate completion reply
COMPREPLY=( $(compgen -W "${hosts[*]}" -- "$word") )
}
-complete -F _ssh ssh sftp ssh-copy-id
+complete -F _ssh -o default ssh sftp ssh-copy-id