diff options
| author | dana <dana@dana.is> | 2018-06-20 00:25:31 -0500 |
|---|---|---|
| committer | dana <dana@dana.is> | 2018-06-20 00:25:31 -0500 |
| commit | 05e4ee0587ae6e804117612bd459cfb23e337d1d (patch) | |
| tree | 4c944dc6d94e8604a72ece885ccdbaff7ff0ef11 /Completion/Zsh/Command | |
| parent | 43047: Add completion for hostname (diff) | |
| download | zsh-05e4ee0587ae6e804117612bd459cfb23e337d1d.tar zsh-05e4ee0587ae6e804117612bd459cfb23e337d1d.tar.gz zsh-05e4ee0587ae6e804117612bd459cfb23e337d1d.tar.bz2 zsh-05e4ee0587ae6e804117612bd459cfb23e337d1d.tar.lz zsh-05e4ee0587ae6e804117612bd459cfb23e337d1d.tar.xz zsh-05e4ee0587ae6e804117612bd459cfb23e337d1d.tar.zst zsh-05e4ee0587ae6e804117612bd459cfb23e337d1d.zip | |
43060: Expand stat completion
Diffstat (limited to 'Completion/Zsh/Command')
| -rw-r--r-- | Completion/Zsh/Command/_stat | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Completion/Zsh/Command/_stat b/Completion/Zsh/Command/_stat deleted file mode 100644 index 73bbef471..000000000 --- a/Completion/Zsh/Command/_stat +++ /dev/null @@ -1,33 +0,0 @@ -#compdef stat zstat - -local expl ret=1 - -if [[ $service == zstat ]] || - (( ${+builtins[stat]} )) || - { (( ! ${+builtins} )) && [[ $(type -w stat) == '*: builtin' ]] } -then - _arguments -s -S : \ - '(-H)-A[assign the results to array, don'\''t print]:array variable:_parameters -g "*array*"' \ - - set1 \ - +device +inode +mode +nlink +uid +gid +rdev \ - +size +atime +mtime +ctime +blksize +block +link \ - '(-A)-H[assign the results to associative array, don'\''t print]:associative array variable:_parameters -g "*association*"' \ - '(:)-f[stat a file descriptor]:file descriptor:_file_descriptors' \ - '(-s)-F:strftime(3) format string:_date_formats zsh' \ - '(-s)-g[show times in GMT/UTC]' \ - '-L[don'\''t dereference symbolic links; use lstat(2)]' \ - '(-N)-n[always show names of files]' \ - '(-n)-N[never show names of files]' \ - '-o[print file modes in octal rather than decimal]' \ - '-r[print raw data]' \ - '-s[print mode,uid,gid and times as strings]' \ - '(-T)-t[always show type names]' \ - '(-t)-T[never show type names]' \ - '*:files to stat:_files' \ - - set2 \ - '-l[list stat types]' -else - # TODO: system-specific completion - # TODO: choose this codepath if 'command stat ...' or '=stat ...' is used - _files -fi |
