[Lunar-commits] <lunar> aliases: Recommended choice (first in list) will be picked after $PROMPT_DELAY if left unattended
Stefan Wold
ratler at lunar-linux.org
Sun Nov 8 14:27:10 CET 2009
commit e64e982dc68bdb29928d3ded96f81bdd400fbfed
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sun Nov 8 14:27:10 2009 +0100
aliases: Recommended choice (first in list) will be picked after $PROMPT_DELAY if left unattended
[FIX] Resolves bug #345
[FIX] Output Choice> prompt, looks better that way
---
var/lib/lunar/functions/aliases.lunar | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/var/lib/lunar/functions/aliases.lunar b/var/lib/lunar/functions/aliases.lunar
index 53ebb45..3b558fa 100644
--- a/var/lib/lunar/functions/aliases.lunar
+++ b/var/lib/lunar/functions/aliases.lunar
@@ -60,7 +60,8 @@ unalias() {
error_message " ${QUERY_COLOR}$N${MESSAGE_COLOR} - ${DEFAULT_COLOR}${MODULE_COLOR}$TARGET${DEFAULT_COLOR} ${MESSAGE_COLOR}(Not installed)${DEFAULT_COLOR}"
fi
done
- read CHOICE
+ echo -n -e "${MESSAGE_COLOR}Choice> ${DEFAULT_COLOR}" >&2
+ read -t $PROMPT_DELAY CHOICE
# test directly first
if echo $TARGETS | grep -qw "$CHOICE" ; then
verbose_msg "Stored alias mapping $1 -> $TARGET"
More information about the Lunar-commits
mailing list