mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
45649: completion: Simplify Unison completion. No functional change.
This commit is contained in:
parent
83f7dc7806
commit
51091e19cd
2 changed files with 7 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue