diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_unison | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog index 72aba5023..8dbbc573b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-03-29 Daniel Shahaf <d.s@daniel.shahaf.name> + + * 45649: Completion/Unix/Command/_unison: completion: Simplify + Unison completion. No functional change. + 2020-03-29 Henri Menke <henri@icp.uni-stuttgart.de> * 45646: Completion/Unix/Command/_unison: completion: Unison: 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 |