summaryrefslogtreecommitdiff
path: root/completions/sshfs
diff options
context:
space:
mode:
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