summaryrefslogtreecommitdiff
path: root/completions/sshfs
diff options
context:
space:
mode:
Diffstat (limited to 'completions/sshfs')
-rw-r--r--completions/sshfs10
1 files changed, 4 insertions, 6 deletions
diff --git a/completions/sshfs b/completions/sshfs
index 4afcc994..223d029b 100644
--- a/completions/sshfs
+++ b/completions/sshfs
@@ -5,21 +5,19 @@ _sshfs()
local cur prev words cword
_init_completion -n : || return
- local userhost path
-
_expand || return
- if [[ "$cur" == *:* ]]; then
+ if [[ $cur == *:* ]]; then
_xfunc ssh _scp_remote_files -d
# unlike scp and rsync, sshfs works with 1 backslash instead of 3
- COMPREPLY=( "${COMPREPLY[@]//\\\\\\/\\}" )
+ COMPREPLY=("${COMPREPLY[@]//\\\\\\/\\}")
return
fi
- [[ "$cur" == @(*/|[.~])* ]] || _known_hosts_real -c -a -- "$cur"
+ [[ $cur == @(*/|[.~])* ]] || _known_hosts_real -c -a -- "$cur"
_xfunc ssh _scp_local_files -d
} &&
-complete -F _sshfs -o nospace sshfs
+ complete -F _sshfs -o nospace sshfs
# ex: filetype=sh