summaryrefslogtreecommitdiffstats
path: root/completions/ssh-copy-id
diff options
context:
space:
mode:
Diffstat (limited to 'completions/ssh-copy-id')
-rw-r--r--completions/ssh-copy-id8
1 files changed, 6 insertions, 2 deletions
diff --git a/completions/ssh-copy-id b/completions/ssh-copy-id
index 52aa9d7..5ead5a6 100644
--- a/completions/ssh-copy-id
+++ b/completions/ssh-copy-id
@@ -7,7 +7,7 @@ _comp_cmd_ssh_copy_id()
# Prefer `ssh` from same dir for resolving options, etc
local pathcmd
- pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH
+ pathcmd=$(type -P -- "$1") && local PATH=${pathcmd%/*}:$PATH
_comp_compgen -x ssh suboption_check && return
@@ -16,7 +16,11 @@ _comp_cmd_ssh_copy_id()
_comp_compgen -x ssh identityfile pub
return
;;
- -p)
+ -p | -t)
+ return
+ ;;
+ -F)
+ _comp_compgen_filedir
return
;;
-o)