Skip to content

Commit

Permalink
45649: completion: Simplify Unison completion. No functional change.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielshahaf committed Mar 29, 2020
1 parent 83f7dc7 commit 51091e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 2 additions & 5 deletions Completion/Unix/Command/_unison
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 51091e1

Please sign in to comment.