awesome-client: Use rlwrap if it is available

This should make this more usable again. The old C version used readline, if
possible and now the new bash version does too. :)

The idea to use rlwrap is from jd and it's a good one.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2009-04-18 12:26:31 +02:00 committed by Julien Danjou
parent 9b35ad7983
commit b6db5137fc
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,13 @@
#!/bin/sh
# rlwrap provides readline to stuff which doesn't know readline by itself
RLWRAP=`which rlwrap 2>/dev/null`
if [ "$RLWRAP" != "" ] && [ "$A_RERUN" = "" ]
then
A_RERUN="no" exec $RLWRAP $0
fi
DBUS_SEND=dbus-send
if ! which ${DBUS_SEND} >/dev/null 2>&1