diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-21 13:54:30 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-21 13:54:30 +1300 |
commit | 5bfebd765f1de0bf662e1c7ea75533971e8e502f (patch) | |
tree | 34571eb06abc23e11d6633197bfe2828891106a5 /bash/bashrc.d/ssh.bash | |
parent | Tidy up completion considerably; no more compgen (diff) | |
download | dotfiles-5bfebd765f1de0bf662e1c7ea75533971e8e502f.tar.gz dotfiles-5bfebd765f1de0bf662e1c7ea75533971e8e502f.zip |
Switch compopt back out
Damn, looks like 2.05a doesn't have compopt; put it back into the
complete line
Diffstat (limited to 'bash/bashrc.d/ssh.bash')
-rw-r--r-- | bash/bashrc.d/ssh.bash | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bash/bashrc.d/ssh.bash b/bash/bashrc.d/ssh.bash index 223aace8..67c2828a 100644 --- a/bash/bashrc.d/ssh.bash +++ b/bash/bashrc.d/ssh.bash @@ -1,9 +1,6 @@ # Completion for ssh/sftp/ssh-copy-id with config hostnames _ssh() { - # Use default completion if no matches - compopt -o default - # Read hostnames from existent config files, no asterisks local -a hosts local config option value @@ -22,5 +19,5 @@ _ssh() { COMPREPLY=("${COMPREPLY[@]}" "$host") done } -complete -F _ssh ssh sftp ssh-copy-id +complete -F _ssh -o default ssh sftp ssh-copy-id |