diff options
author | Timo Weingärtner <timo@tiwe.de> | 2013-10-11 11:45:06 +0200 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2013-10-11 11:50:08 +0200 |
commit | 82f6ec6201c4fb64d0fc9ec43e9c003849ddc6ba (patch) | |
tree | a96ebb43eafa13e11da960e09906a91b1e366a2d /ssh-agent-filter.bash-completion | |
parent | be10d6a2c1b646ce3cc67bab2896dd3720a80e64 (diff) | |
download | ssh-agent-filter-82f6ec6201c4fb64d0fc9ec43e9c003849ddc6ba.tar.gz |
update bash-completion for confirmation options
Diffstat (limited to 'ssh-agent-filter.bash-completion')
-rw-r--r-- | ssh-agent-filter.bash-completion | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ssh-agent-filter.bash-completion b/ssh-agent-filter.bash-completion index 4406a0a..61debb9 100644 --- a/ssh-agent-filter.bash-completion +++ b/ssh-agent-filter.bash-completion @@ -23,28 +23,31 @@ _ssh-agent-filter () { _quote_readline_by_ref "$cur" cur - opts="--comment --debug --fingerprint --help --key --version" + opts="--all-confirmed --comment --comment-confirmed --debug --fingerprint --fingerprint-confirmed --help --key --key-confirmed --name --version" case "$prev" in - -c|--comment) + -c|--comment|-C|--comment-confirmed) # hm, key comments might contain anything, how can I quote them ? local comments="$(ssh-add -L | cut -d\ -f3- )" COMPREPLY=( $(compgen -W "$comments" -- "$cur") ) return 0 ;; - -f|--fp|--fingerprint) + -f|--fp|--fingerprint|-F|--fingerprint-confirmed) # fingerprints contain many colons local fingerprints="$(ssh-add -l | cut -d\ -f2 )" COMPREPLY=( $(compgen -W "$fingerprints" -- "$cur") ) __ltrim_colon_completions "$cur" return 0 ;; - -k|--key) + -k|--key|-K|--key-confirmed) # this is base64, no quoting needed local keys="$(ssh-add -L | cut -d\ -f2 )" COMPREPLY=( $(compgen -W "$keys" -- "$cur") ) return 0 ;; + -n|--name) + COMPREPLY=( $(compgen -W "" -- "$cur") ) + return 0 esac COMPREPLY=( $(compgen -W "$opts" -- "$cur") ) |