diff --git a/ChangeLog b/ChangeLog index 943bfe1d4..72aba5023 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-03-29 Henri Menke + + * 45646: Completion/Unix/Command/_unison: completion: Unison: + Honour the $UNISON variable + 2020-03-28 Gastón Haro * github #46: Completion/Unix/Command/_git: _git-restore: diff --git a/Completion/Unix/Command/_unison b/Completion/Unix/Command/_unison index 2a3333742..d8cf7458f 100644 --- a/Completion/Unix/Command/_unison +++ b/Completion/Unix/Command/_unison @@ -86,7 +86,7 @@ _arguments \ if [[ $state == profile ]]; then local -a profiles - profiles=( ~/.unison/*.prf(N) ) + profiles=( ${UNISON:-~/.unison}/*.prf(N) ) (( $#profiles )) && \ - compadd "$@" - ${${profiles#~/.unison/}%.prf} + compadd "$@" - ${${profiles#${UNISON:-~/.unison}/}%.prf} fi