diff options
| author | Eric Cook <illua@users.sourceforge.net> | 2024-11-11 10:46:08 -0500 |
|---|---|---|
| committer | Eric Cook <illua@users.sourceforge.net> | 2024-11-11 10:46:08 -0500 |
| commit | 393cb298aaa849bae62e7294fecb1b60d0dd3910 (patch) | |
| tree | 8072f18b95af72dd264882ace0fc1d917e16219f /Completion | |
| parent | 53144: _sysctl: support completion with the dot delimiter on linux (diff) | |
| download | zsh-393cb298aaa849bae62e7294fecb1b60d0dd3910.tar zsh-393cb298aaa849bae62e7294fecb1b60d0dd3910.tar.gz zsh-393cb298aaa849bae62e7294fecb1b60d0dd3910.tar.bz2 zsh-393cb298aaa849bae62e7294fecb1b60d0dd3910.tar.lz zsh-393cb298aaa849bae62e7294fecb1b60d0dd3910.tar.xz zsh-393cb298aaa849bae62e7294fecb1b60d0dd3910.tar.zst zsh-393cb298aaa849bae62e7294fecb1b60d0dd3910.zip | |
53174: add Completion/Base/Utility/_as_if
Diffstat (limited to 'Completion')
| -rw-r--r-- | Completion/Base/Utility/_as_if | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/Base/Utility/_as_if b/Completion/Base/Utility/_as_if new file mode 100644 index 000000000..c961aaa88 --- /dev/null +++ b/Completion/Base/Utility/_as_if @@ -0,0 +1,10 @@ +#autoload +local words=("$words[@]") CURRENT=$CURRENT +local _comp_command1 _comp_command2 _comp_command + +words[1]=("$@") +(( CURRENT += $# - 1 )) + +_set_command + +_dispatch "$_comp_command" "$_comp_command1" "$_comp_command2" -default- |
