diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-29 20:20:49 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-29 20:56:20 +0000 |
commit | 51091e19cd581149c759fcea4f534abe877dd307 (patch) | |
tree | 4ea2250c0af70cad8200ff58106359daf9f168dd /Completion/Unix | |
parent | 83f7dc780661ca471ac70fc2b1d5aa6247c7c189 (diff) | |
download | zsh-51091e19cd581149c759fcea4f534abe877dd307.tar.gz zsh-51091e19cd581149c759fcea4f534abe877dd307.tar.xz zsh-51091e19cd581149c759fcea4f534abe877dd307.zip |
45649: completion: Simplify Unison completion. No functional change.
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_unison | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_unison b/Completion/Unix/Command/_unison index d8cf7458f..5963d66c6 100644 --- a/Completion/Unix/Command/_unison +++ b/Completion/Unix/Command/_unison @@ -84,9 +84,6 @@ _arguments \ '*:profile:->profile' if [[ $state == profile ]]; then - local -a profiles - - profiles=( ${UNISON:-~/.unison}/*.prf(N) ) - (( $#profiles )) && \ - compadd "$@" - ${${profiles#${UNISON:-~/.unison}/}%.prf} + local -a profiles=( ${UNISON:-~/.unison}/*.prf(N:t:r) ) + compadd "$@" -a profiles fi |