aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreroen <eroen@occam.eroen.eu>2014-09-08 20:08:16 +0200
committereroen <eroen@occam.eroen.eu>2014-09-08 20:08:16 +0200
commitcd91240afa2bed8a7fbcf1c61bae293d7fb41fca (patch)
treedc44a460c743a0560681c06a484f84da0bcf43ec /wine.eselect
parentHandle .desktop file (diff)
downloadeselect-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.eselect5
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[@]}"
}