summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2020-03-17 13:35:48 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-17 14:03:50 +0000
commita30da73187537bd9a57256bfd9eed3ed4d478174 (patch)
tree80042fa4513a2bf8f84fabf8cf99065794509150
parent0bc1edef5a1297a2389a480ea0436d2d9ff0392c (diff)
downloadzsh-a30da73187537bd9a57256bfd9eed3ed4d478174.tar.gz
zsh-a30da73187537bd9a57256bfd9eed3ed4d478174.zip
45572: _sshfs: Complete some more options
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/Command/_sshfs13
2 files changed, 15 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d95307de..c7bad4e0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-03-17 Daniel Shahaf <danielsh@apache.org>
+
+ * 45572: Completion/Linux/Command/_sshfs: Complete some more
+ options
+
2020-03-17 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 45536: Src/utils.c: fix handling of 8bit character in
diff --git a/Completion/Linux/Command/_sshfs b/Completion/Linux/Command/_sshfs
index 3363ecdc0..3467fbd8a 100644
--- a/Completion/Linux/Command/_sshfs
+++ b/Completion/Linux/Command/_sshfs
@@ -19,8 +19,14 @@ _arguments -C -S : \
':mountpoint:_files -/' && ret=0
if [[ $state == options ]]; then
- _values -s , "sshfs or fuse or mount options" \
+ # TODO complete ssh(1) options
+ _values -s , "options to ssh, sshfs, mount, or FUSE" \
+ 'port:number' \
+ 'compression: :(yes no)' \
reconnect delay_connect sshfs_sync no_readahead sync_readdir \
+ sshfs_debug \
+ 'cache: :(yes no)' \
+ 'cache_timeout:timeout (seconds)' \
'dir_cache:cache setting:(yes no)' \
'dcache_max_size:size [10000]' \
'dcache_timeout:timeout (seconds) [20]' \
@@ -37,12 +43,13 @@ if [[ $state == options ]]; then
sftp_server:path:_files \
directport:port:_ports \
slave disable_hardlink transform_symlinks follow_symlinks no_check_root password_stdin \
+ debug \
allow_other allow_root auto_unmount nonempty default_permissions \
fsname:filesystem\ name \
subtype:filesystem\ type \
large_read \
max_read:max\ size \
- hard_remove use_ino readdir_ino direct_io kernel_cache auto_cache \
+ hard_remove use_ino readdir_ino direct_io kernel_cache auto_cache noauto_cache \
'umask:permissions' \
'uid:owner' 'gid:group' \
'entry_timeout:timeout (seconds) [1]' \
@@ -60,7 +67,7 @@ if [[ $state == options ]]; then
congestion_threshold:threshold \
async_read sync_read atomic_o_trunc big_writes no_remote_lock no_remote_flock \
no_remote_posix_lock splice_write splice_move splice_read \
- from_code:charset to_code:charset subdir:_directories rellinks && ret=0
+ from_code:charset to_code:charset subdir:_directories rellinks norellinks && ret=0
fi
return ret