We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e8a5e commit 757045aCopy full SHA for 757045a
completions/ssh-add
@@ -10,14 +10,27 @@ _comp_cmd_ssh_add()
10
_comp_compgen -- -W 'md5 sha256'
11
return
12
;;
13
+ -*H)
14
+ _comp_compgen_filedir
15
+ return
16
+ ;;
17
+ -*h)
18
+ # TODO should we try supporting more types of constraints?
19
+ if [[ $cur == *@* ]]; then
20
+ _comp_complete_user_at_host "$@"
21
+ else
22
+ _comp_compgen_known_hosts -- "$cur"
23
+ fi
24
25
26
-*t)
27
28
29
-*T)
30
_comp_compgen_filedir
31
32
- -*[se])
33
+ -*S | -*[se])
34
_comp_compgen_filedir so
35
36
0 commit comments