1
0
Fork 0
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:
dana 2018-01-03 06:24:24 -06:00 committed by Oliver Kiddle
parent dd824080ca
commit d81bfa0141
17 changed files with 26 additions and 16 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
#compdef cat
#compdef cat gcat
local -a args

View file

@ -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

View file

@ -1,4 +1,4 @@
#compdef cut
#compdef cut gcut
typeset -A _cut_args

View file

@ -1,4 +1,4 @@
#compdef dd
#compdef dd gdd
_values -w 'option' \
'if[specify input file]:input file:_tilde_files' \

View file

@ -1,4 +1,4 @@
#compdef df
#compdef df gdf
local curcontext="$curcontext" state state_descr line args spec ret=1
local -A opt_args

View file

@ -1,4 +1,4 @@
#compdef env
#compdef env genv
local context state line variant args ret=1

View file

@ -1,4 +1,4 @@
#compdef fmt
#compdef fmt gfmt
local variant
local -a args

View file

@ -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

View file

@ -1,4 +1,4 @@
#compdef paste
#compdef paste gpaste
local -a args
local dopt='[specify delimiter list]:delimiter list [tab]'

View file

@ -1,4 +1,4 @@
#compdef printenv
#compdef printenv gprintenv
local expl

View file

@ -1,4 +1,4 @@
#compdef stdbuf
#compdef stdbuf gstdbuf
local -a short long buf args
local i opt gnu=0

View file

@ -1,4 +1,4 @@
#compdef stty
#compdef stty gstty
local expl

View file

@ -1,4 +1,4 @@
#compdef tail
#compdef tail gtail
local curcontext=$curcontext state state_descr line opts args ret=1
typeset -A opt_args

View file

@ -1,4 +1,4 @@
#compdef tr
#compdef tr gtr
local curcontext="$curcontext" state line expl ret=1
local args variant k

View file

@ -1,4 +1,4 @@
#compdef uname
#compdef uname guname
typeset -A _uname_args
local -a args

View file

@ -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