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.
2 parents 39ea543 + 2beb012 commit 50865aaCopy full SHA for 50865aa
completions/ssh-add
@@ -10,21 +10,34 @@ _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
37
esac
38
39
if [[ $cur == -* ]]; then
- _comp_compgen_help -- '-?'
40
+ _comp_compgen_usage -- '-?' || _comp_compgen_help -- '-?'
41
42
fi
43
0 commit comments