summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2013-03-20 20:33:45 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2013-03-20 20:33:45 +0000
commit275ba0fdcae1b028c2989ba817e6f3c42fb9366a (patch)
tree325d328878f0c2b0920bfbcd6222efd0ae7524a4 /Completion/Unix/Command
parent31158: following a wildcard with a repetition produces a bad pattern error (diff)
downloadzsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.tar
zsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.tar.gz
zsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.tar.bz2
zsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.tar.lz
zsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.tar.xz
zsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.tar.zst
zsh-275ba0fdcae1b028c2989ba817e6f3c42fb9366a.zip
Han Pingtian: 31167 (with tweak): limit use of colons for recognising
remote path in ssh completion
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_ssh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 7e85e2bb6..3e499b8d0 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -519,7 +519,7 @@ _ssh () {
fi
;;
file)
- if compset -P '*:'; then
+ if compset -P '[^./][^/]#:'; then
_remote_files -- ssh ${(kv)~opt_args[(I)-[FP1246]]/-P/-p} && ret=0
elif compset -P '*@'; then
suf=( -S '' )