diff options
author | eroen <eroen@occam.eroen.eu> | 2014-09-08 20:08:16 +0200 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2014-09-08 20:08:16 +0200 |
commit | cd91240afa2bed8a7fbcf1c61bae293d7fb41fca (patch) | |
tree | dc44a460c743a0560681c06a484f84da0bcf43ec /wine.eselect | |
parent | Handle .desktop file (diff) | |
download | eselect-wine-cd91240afa2bed8a7fbcf1c61bae293d7fb41fca.tar.gz eselect-wine-cd91240afa2bed8a7fbcf1c61bae293d7fb41fca.tar.bz2 eselect-wine-cd91240afa2bed8a7fbcf1c61bae293d7fb41fca.zip |
Highlight active version in list
Diffstat (limited to 'wine.eselect')
-rw-r--r-- | wine.eselect | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wine.eselect b/wine.eselect index fa1029f..0950b2a 100644 --- a/wine.eselect +++ b/wine.eselect @@ -138,6 +138,11 @@ do_list() { local i targets=( $(find_targets) ) write_list_start "Available wine versions:" + for (( i = 0; i < ${#targets[@]}; i++ )); do + [[ ${targets[i]} = \ + $(basename "$(canonicalise "${EROOT}${BINDIR}/wine")") ]] \ + && targets[i]=$(highlight_marker "${targets[i]}") + done write_numbered_list -m "(none found)" "${targets[@]}" } |