mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
42207: support g prefixes for GNU variants on systems like macOS+Homebrew
This commit is contained in:
parent
dd824080ca
commit
d81bfa0141
17 changed files with 26 additions and 16 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,5 +1,15 @@
|
|||
2018-01-03 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* dana: 42207: Completion/Unix/Command/_chown,
|
||||
Completion/Unix/Command/_cat, Completion/Unix/Command/_cut,
|
||||
Completion/Unix/Command/_dd, Completion/Unix/Command/_df,
|
||||
Completion/Unix/Command/_env, Completion/Unix/Command/_fmt,
|
||||
Completion/Unix/Command/_head, Completion/Unix/Command/_paste,
|
||||
Completion/Unix/Command/_printenv, Completion/Unix/Command/_stty,
|
||||
Completion/Unix/Command/_stdbuf, Completion/Unix/Command/_tail,
|
||||
Completion/Unix/Command/_tr, Completion/Unix/Command/_uname,
|
||||
Completion/Unix/Type/_directories: add g prefixes for GNU variants
|
||||
|
||||
* Matthew Martin: 42117: Completion/BSD/Command/_chflags:
|
||||
use anonymous function rather than define one in user namespace
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef cat
|
||||
#compdef cat gcat
|
||||
|
||||
local -a args
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef chown chgrp zf_chown=chown zf_chgrp=chgrp
|
||||
#compdef chown chgrp gchown=chown gchgrp=chgrp zf_chown=chown zf_chgrp=chgrp
|
||||
|
||||
local curcontext="$curcontext" state line expl ret=1
|
||||
local suf usr grp req deref pattern arg args
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef cut
|
||||
#compdef cut gcut
|
||||
|
||||
typeset -A _cut_args
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef dd
|
||||
#compdef dd gdd
|
||||
|
||||
_values -w 'option' \
|
||||
'if[specify input file]:input file:_tilde_files' \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef df
|
||||
#compdef df gdf
|
||||
|
||||
local curcontext="$curcontext" state state_descr line args spec ret=1
|
||||
local -A opt_args
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef env
|
||||
#compdef env genv
|
||||
|
||||
local context state line variant args ret=1
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef fmt
|
||||
#compdef fmt gfmt
|
||||
|
||||
local variant
|
||||
local -a args
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef head
|
||||
#compdef head ghead
|
||||
|
||||
local curcontext=$curcontext state state_descr line expl opts args ret=1
|
||||
typeset -A opt_args
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef paste
|
||||
#compdef paste gpaste
|
||||
|
||||
local -a args
|
||||
local dopt='[specify delimiter list]:delimiter list [tab]'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef printenv
|
||||
#compdef printenv gprintenv
|
||||
|
||||
local expl
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef stdbuf
|
||||
#compdef stdbuf gstdbuf
|
||||
|
||||
local -a short long buf args
|
||||
local i opt gnu=0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef stty
|
||||
#compdef stty gstty
|
||||
|
||||
local expl
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef tail
|
||||
#compdef tail gtail
|
||||
|
||||
local curcontext=$curcontext state state_descr line opts args ret=1
|
||||
typeset -A opt_args
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef tr
|
||||
#compdef tr gtr
|
||||
|
||||
local curcontext="$curcontext" state line expl ret=1
|
||||
local args variant k
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef uname
|
||||
#compdef uname guname
|
||||
|
||||
typeset -A _uname_args
|
||||
local -a args
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#compdef rmdir zf_rmdir dircmp -P -value-,*path,-default-
|
||||
#compdef rmdir grmdir zf_rmdir dircmp -P -value-,*path,-default-
|
||||
|
||||
local expl
|
||||
|
||||
|
|
Loading…
Reference in a new issue