diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-12-03 02:31:49 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-12-03 02:31:49 +0000 |
commit | b32f902ba598c851196b037178233477c2411876 (patch) | |
tree | b7cbfbe7ef82be75804f4a1c1800506208b7d489 /Completion/Unix/Command/_sed | |
parent | 79a0a88e660f0b4027a75d374efb7ffba3011adc (diff) | |
download | zsh-b32f902ba598c851196b037178233477c2411876.tar.gz zsh-b32f902ba598c851196b037178233477c2411876.tar.xz zsh-b32f902ba598c851196b037178233477c2411876.zip |
Bring various .distfiles up to date and merge any extra completions onto 4.2 branch.
Diffstat (limited to 'Completion/Unix/Command/_sed')
-rw-r--r-- | Completion/Unix/Command/_sed | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_sed b/Completion/Unix/Command/_sed new file mode 100644 index 000000000..0175364d9 --- /dev/null +++ b/Completion/Unix/Command/_sed @@ -0,0 +1,27 @@ +#compdef sed + +local args + +args=( + '(-n --quiet --silent)'{-n,--quiet,--silent}'[suppress automatic printing of pattern space]' + '(1)*'{-e,--expression=-}'[add sed commands to run]:sed script' + '(1)*'{-f,--file=-}'[add contents of file to commands to run]:file:_files' + '(-e)1: :_guard "^-*" sed script' + ':input file:_files' +) + +if _pick_variant gnu=GNU unix --version; then + args+=( + '(-i --in-place)'{-i-,--in-place=-}'[edit files in place]::suffix for backup' + '(-l --line-length)'{-l,--line-length=-}'[specify line-wrap length for the l command]' + '(-r --regexp-extended)'{-r,--regexp-extended}'[use extended regular expressions]' + '(-s --separate)'{-s,--separate}'[consider files separately instead of as a combined stream]' + '(-u --unbuffered)'{-u,--unbuffered}'[disable data buffering]' + '(- 1 :)--help[print program usage]' + '(- 1 :)'{-V,--version}'[print program version]' + ) +else + args=( "${(@)args:#(|\(*\))(|\*)--*}" ) +fi + +_arguments "$args[@]" |