diff options
author | dana <dana@dana.is> | 2018-01-03 06:24:24 -0600 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2018-01-03 17:27:23 +0100 |
commit | d81bfa014157315423755b0cdeba15e2d42383fc (patch) | |
tree | e1bc66cd11f7f7ef354e04dac3bea87127ba41c6 | |
parent | dd824080cacd64289281ae6088732d6b63942728 (diff) | |
download | zsh-d81bfa014157315423755b0cdeba15e2d42383fc.tar.gz zsh-d81bfa014157315423755b0cdeba15e2d42383fc.tar.xz zsh-d81bfa014157315423755b0cdeba15e2d42383fc.zip |
42207: support g prefixes for GNU variants on systems like macOS+Homebrew
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | Completion/Unix/Command/_cat | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_chown | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_cut | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_dd | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_df | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_env | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_fmt | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_head | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_paste | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_printenv | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_stdbuf | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_stty | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_tail | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_tr | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_uname | 2 | ||||
-rw-r--r-- | Completion/Unix/Type/_directories | 2 |
17 files changed, 26 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog index 10473ff7c..4f1cfa3c2 100644 --- a/ChangeLog +++ b/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 diff --git a/Completion/Unix/Command/_cat b/Completion/Unix/Command/_cat index 46180f2c8..e383f8c6b 100644 --- a/Completion/Unix/Command/_cat +++ b/Completion/Unix/Command/_cat @@ -1,4 +1,4 @@ -#compdef cat +#compdef cat gcat local -a args diff --git a/Completion/Unix/Command/_chown b/Completion/Unix/Command/_chown index 5750c65ab..c3abb5858 100644 --- a/Completion/Unix/Command/_chown +++ b/Completion/Unix/Command/_chown @@ -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 diff --git a/Completion/Unix/Command/_cut b/Completion/Unix/Command/_cut index caf8f32b7..d3b1e2b10 100644 --- a/Completion/Unix/Command/_cut +++ b/Completion/Unix/Command/_cut @@ -1,4 +1,4 @@ -#compdef cut +#compdef cut gcut typeset -A _cut_args diff --git a/Completion/Unix/Command/_dd b/Completion/Unix/Command/_dd index 1a2ae871a..e51337f21 100644 --- a/Completion/Unix/Command/_dd +++ b/Completion/Unix/Command/_dd @@ -1,4 +1,4 @@ -#compdef dd +#compdef dd gdd _values -w 'option' \ 'if[specify input file]:input file:_tilde_files' \ diff --git a/Completion/Unix/Command/_df b/Completion/Unix/Command/_df index d20ddea7e..4567b64b0 100644 --- a/Completion/Unix/Command/_df +++ b/Completion/Unix/Command/_df @@ -1,4 +1,4 @@ -#compdef df +#compdef df gdf local curcontext="$curcontext" state state_descr line args spec ret=1 local -A opt_args diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env index 214c61e54..96e96bd7b 100644 --- a/Completion/Unix/Command/_env +++ b/Completion/Unix/Command/_env @@ -1,4 +1,4 @@ -#compdef env +#compdef env genv local context state line variant args ret=1 diff --git a/Completion/Unix/Command/_fmt b/Completion/Unix/Command/_fmt index 759396637..87c7005b9 100644 --- a/Completion/Unix/Command/_fmt +++ b/Completion/Unix/Command/_fmt @@ -1,4 +1,4 @@ -#compdef fmt +#compdef fmt gfmt local variant local -a args diff --git a/Completion/Unix/Command/_head b/Completion/Unix/Command/_head index 75fc1f0a1..1e968cc11 100644 --- a/Completion/Unix/Command/_head +++ b/Completion/Unix/Command/_head @@ -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 diff --git a/Completion/Unix/Command/_paste b/Completion/Unix/Command/_paste index 6efe8eacb..d9598bfef 100644 --- a/Completion/Unix/Command/_paste +++ b/Completion/Unix/Command/_paste @@ -1,4 +1,4 @@ -#compdef paste +#compdef paste gpaste local -a args local dopt='[specify delimiter list]:delimiter list [tab]' diff --git a/Completion/Unix/Command/_printenv b/Completion/Unix/Command/_printenv index ad5b49815..8bff27c90 100644 --- a/Completion/Unix/Command/_printenv +++ b/Completion/Unix/Command/_printenv @@ -1,4 +1,4 @@ -#compdef printenv +#compdef printenv gprintenv local expl diff --git a/Completion/Unix/Command/_stdbuf b/Completion/Unix/Command/_stdbuf index 3bce3d0a7..e45b5a5cd 100644 --- a/Completion/Unix/Command/_stdbuf +++ b/Completion/Unix/Command/_stdbuf @@ -1,4 +1,4 @@ -#compdef stdbuf +#compdef stdbuf gstdbuf local -a short long buf args local i opt gnu=0 diff --git a/Completion/Unix/Command/_stty b/Completion/Unix/Command/_stty index b5545ebcd..73347c5b7 100644 --- a/Completion/Unix/Command/_stty +++ b/Completion/Unix/Command/_stty @@ -1,4 +1,4 @@ -#compdef stty +#compdef stty gstty local expl diff --git a/Completion/Unix/Command/_tail b/Completion/Unix/Command/_tail index 4e6422621..b7001389b 100644 --- a/Completion/Unix/Command/_tail +++ b/Completion/Unix/Command/_tail @@ -1,4 +1,4 @@ -#compdef tail +#compdef tail gtail local curcontext=$curcontext state state_descr line opts args ret=1 typeset -A opt_args diff --git a/Completion/Unix/Command/_tr b/Completion/Unix/Command/_tr index efa3d4c91..d244bf875 100644 --- a/Completion/Unix/Command/_tr +++ b/Completion/Unix/Command/_tr @@ -1,4 +1,4 @@ -#compdef tr +#compdef tr gtr local curcontext="$curcontext" state line expl ret=1 local args variant k diff --git a/Completion/Unix/Command/_uname b/Completion/Unix/Command/_uname index 414a82a87..31af91eb7 100644 --- a/Completion/Unix/Command/_uname +++ b/Completion/Unix/Command/_uname @@ -1,4 +1,4 @@ -#compdef uname +#compdef uname guname typeset -A _uname_args local -a args diff --git a/Completion/Unix/Type/_directories b/Completion/Unix/Type/_directories index 2125645fe..456af3b6c 100644 --- a/Completion/Unix/Type/_directories +++ b/Completion/Unix/Type/_directories @@ -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 |