From 51091e19cd581149c759fcea4f534abe877dd307 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 29 Mar 2020 20:20:49 +0000 Subject: 45649: completion: Simplify Unison completion. No functional change. --- Completion/Unix/Command/_unison | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Completion/Unix') 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 -- cgit 1.4.1