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:
parent
9b35ad7983
commit
b6db5137fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue