diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
commit | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch) | |
tree | ea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /completions/sshfs | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-upstream.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/sshfs')
-rw-r--r-- | completions/sshfs | 10 |
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 |