summaryrefslogtreecommitdiff
path: root/completions/sshfs
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
commit6d88f1055806932d9291f96847d2b691cccda2cd (patch)
tree0ff79eedaa8a239331256048981deedbd0721965 /completions/sshfs
parent059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff)
downloadbash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/sshfs')
-rw-r--r--completions/sshfs8
1 files changed, 3 insertions, 5 deletions
diff --git a/completions/sshfs b/completions/sshfs
index 90a92645..4f6d1a1b 100644
--- a/completions/sshfs
+++ b/completions/sshfs
@@ -7,21 +7,19 @@ _sshfs()
local userhost path
- _expand || return 0
+ _expand || return
if [[ "$cur" == *:* ]]; then
_xfunc ssh _scp_remote_files -d
# unlike scp and rsync, sshfs works with 1 backslash instead of 3
COMPREPLY=( "${COMPREPLY[@]//\\\\\\/\\}" )
- return 0
+ return
fi
[[ "$cur" == @(*/|[.~])* ]] || _known_hosts_real -c -a "$cur"
_xfunc ssh _scp_local_files -d
-
- return 0
} &&
complete -F _sshfs -o nospace sshfs
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh