From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27298 invoked by alias); 10 Mar 2017 13:29:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40823 Received: (qmail 8178 invoked from network); 10 Mar 2017 13:29:37 -0000 X-Qmail-Scanner-Diagnostics: from nm27-vm3.bullet.mail.ir2.yahoo.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.82.97.54):SA:0(-0.7/5.0):. Processed in 1.217596 secs); 10 Mar 2017 13:29:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: okiddle@yahoo.co.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.mail.yahoo.com designates 212.82.97.54 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1489152234; bh=tIuWwot+GcbMT6cYXibQG4eQu9KAX38MkIU3CUVtKJs=; h=From:To:Subject:Date:From:Subject; b=Yb/AJrj7NVcwNN2w83B3rUjX5yhbEpwH9K09GRAQhcog0NJ0/FlaDZAYP1xIsm9KyBb+ZGkUxly/Rh4QLbnwsdoMqqvejS5nQWiigvyiP+2aD3A5hUu5Dk0BFhsdppw76g+R6wgewaKlg+KMesKt8tdkrqbgyFNF9+O3So2UIBJGHBtmhPlyC381NfUCxnATA9n4R5YloEBJ4BIpkvGy3H/AUPvYeTMO2u2L+PdOcbS6o0Z1PAbQIT8JnRJDD9KNi8AhGQ0LO7oYQ7fsLMkfUdK+jYKUqxmDTRhMk/T5erY6kUIaT6FpndveQEBsmUVcLImW1feqr8rmn8HiRzr7UQ== X-Yahoo-Newman-Id: 793232.62476.bm@smtp148.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ATpOgOUVM1laSP2GUyYMlcrNTsvi5pkQ7rfhhukxZ3sEDHl DqRCqhnc1ZQGBGysFReREfrYTwOnhd0dKk0DdOEV_JsYmvn4pS7mpY.gdQwI Qab5gwjItoJKnu0FWN7WDBTCnOw3HvlhNJITfTy2mYd7GweNnCWA1PKiLNSu 8WzOkcA0KJ0qpPs1VR1k74qq775IxFoHPRyDj_.oz1uL6j2YDbGQCszUz5ln aeIzYBz9ZGA.a7UmMzJlj833rcAU6GXyaB1wvWkkqFk6hZNpPtQaC.UVqBG4 q6oWj.NN75bH9sKCf12xmPOzzM1RMl5mfdXTMBD1q9eiHPsWvhevhKO2HDTJ YbqcGCc618e_b6cz19Tnvsfttio0uAs59tPdJKEYAW9ds7xPwN.76dAA9jib rd4MeU5hjC6fjRhOx06552eBszJ56hrCRP6o.ympiC9BNujrRPqZ6MpM4hDM MTm3WJRwIWbxe4bGZtFnFuPz8oCzEkc28VSKemLmkRyPZpt2TWmDF2T.pz8t Xcuhqad.s3vcXeATV.zJAGUUICVVf2Z7b_IxI4IIa X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- From: Oliver Kiddle To: Zsh workers Subject: PATCH: update sshfs completion MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14251.1489152228.1@hydra.kiddle.eu> Date: Fri, 10 Mar 2017 14:23:53 +0100 Message-ID: <14254.1489152233@hydra.kiddle.eu> Update for new options up to sshfs 2.8 Ideally, ssh options would also be completed. Oliver diff --git a/Completion/Linux/Command/_sshfs b/Completion/Linux/Command/_sshfs index 534e806e3..fe976288d 100644 --- a/Completion/Linux/Command/_sshfs +++ b/Completion/Linux/Command/_sshfs @@ -1,39 +1,65 @@ #compdef sshfs -local context state state_descr line +local curcontext="$curcontext" 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]' \ + '(-)'{-h,--help}'[display help information]' \ + '(-)'{-V,--version}'[display version information]' \ + '-p[specify TCP port]:tcp port:_ports' \ + '-C[enable compression]' \ + '-F[specify ssh config file]:file:_files' \ + '-o[specify mount options]:options:->options' \ + '(-f)-d[enable debug output]' \ '-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 \ + debug reconnect delay_connect sshfs_sync no_readahead sync_readdir sshfs_debug \ 'cache:cache setting:(yes no)' \ - cache_timeout:seconds: \ - cache_stat_timeout:seconds: \ - cache_dir_timeout:seconds: \ - cache_link_timeout:seconds: \ + 'cache_max_size:size [10000]' \ + 'cache_timeout:timeout (seconds) [20]' \ + cache_{stat,dir,link}_timeout:'timeout (seconds)' \ + 'cache_clean_interval:interval [60]' \ + 'cache_min_clean_interval:interval [5]' \ + 'workaround:workaround:(none all rename delaysrv truncate nobuflimit)' \ + 'idmap:user/group mapping:(none user file)' \ + uidfile:file:_files \ + gidfile:file:_files \ + 'nomap:type:(ignore error)' \ '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 + 'ssh_protocol:version:(1 2)' \ + sftp_server:path:_files \ + directport:port:_ports \ + slave disable_hardlink transform_symlinks follow_symlinks no_check_root password_stdin \ + 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 \ + 'umask:permissions' \ + 'uid:owner' 'gid:group' \ + 'entry_timeout:timeout (seconds) [1]' \ + 'negative_timeout:timeout (seconds) [0]' \ + 'attr_timeout:timeout (seconds) [1]' \ + 'ac_attr_timeout:timeout (seconds) [= attr_timeout]' \ + noforget \ + 'remember:time (seconds)' \ + nopath intr \ + 'intr_signal:signal [10]' \ + modules:module \ + max_write:size \ + max_readahead:readahead \ + max_background:number \ + 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 fi return ret