1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-08 09:41:14 +02:00
zsh/Completion/Linux/Command/_sshfs
Daniel Shahaf 769c6cbc28 unposted: _sshfs: Fix completion of options with values
The "=" to the left of the ":" was interpreted as a literal part of the option
name, resulting in double equal signs.
2015-08-17 21:55:24 +00:00

39 lines
1,014 B
Text

#compdef sshfs
local context state state_descr line
typeset -A opt_args
local curcontext="$curcontext"
integer ret=1
_arguments -C \
'-V[version]' \
'-p:tcp port:' \
'-C[compression]' \
'-o:options:->options' \
'-d[debug]' \
'-f[foreground]' \
'-s[disable multithreaded operation]' \
'-r[mount read-only]' \
'-h[help]' \
':remote directory:_user_at_host -S:' \
':mountpoint:_files -/' && ret=0
if [[ $state == options ]]; then
_values -s , "sshfs or fuse or mount options" \
reconnect sshfs_sync no_readahead sshfs_debug \
'cache:cache setting:(yes no)' \
cache_timeout:seconds: \
cache_stat_timeout:seconds: \
cache_dir_timeout:seconds: \
cache_link_timeout:seconds: \
'ssh_command:ssh command:_command_names' \
directport:port: \
'SSHOPT:ssh option:' \
default_permissions allow_other allow_root kernel_cache large_read direct_io \
max_read:size: \
hard_remove debug \
fs_name:name: \
use_ino readdir_ino && ret=0
fi
return ret