diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2018-02-08 15:12:39 +0000 |
|---|---|---|
| committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2018-02-08 15:12:59 +0000 |
| commit | 567733906210feaebce94675985eb1e77602bfd8 (patch) | |
| tree | a1013204e5bece514bed9ebb4172554520823f11 /Completion/Unix/Command | |
| parent | 42333: git 2.16.0 no longer accepts an empty string as a pathspec element so ... (diff) | |
| download | zsh-567733906210feaebce94675985eb1e77602bfd8.tar zsh-567733906210feaebce94675985eb1e77602bfd8.tar.gz zsh-567733906210feaebce94675985eb1e77602bfd8.tar.bz2 zsh-567733906210feaebce94675985eb1e77602bfd8.tar.lz zsh-567733906210feaebce94675985eb1e77602bfd8.tar.xz zsh-567733906210feaebce94675985eb1e77602bfd8.tar.zst zsh-567733906210feaebce94675985eb1e77602bfd8.zip | |
unposted: _subversion: Support subcommands with hyphens in their names, such as 'shelf-list (shelves)' from upstream 1.10 development versions.
Diffstat (limited to 'Completion/Unix/Command')
| -rw-r--r-- | Completion/Unix/Command/_subversion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion index be1f42f85..b7e10c06b 100644 --- a/Completion/Unix/Command/_subversion +++ b/Completion/Unix/Command/_subversion @@ -34,7 +34,7 @@ _svn () { typeset -gHA _svn_cmds if _cache_invalid svn-cmds || ! _retrieve_cache svn-cmds; then _svn_cmds=( - ${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:} + ${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z-]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:} ) if (( $? == 0 )); then _store_cache svn-cmds _svn_cmds |
