prepend a # on the launching line, in case you scroll up through history

and attempt to run it

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-07-12 13:49:16 -05:00
commit 56a490f460

View file

@ -23,7 +23,7 @@
# Ensure that the PROMPT_COMMAND gets printed, such that gnome-terminal
# and friends can pick it up before going into screen
[ -x /bin/bash ] && echo "echo 'Launching Byobu...'" | /bin/bash -i -s 2>/dev/null
[ -x /bin/bash ] && echo "echo '# Launching Byobu...'" | /bin/bash -i -s 2>/dev/null
out=`screen -ls 2>/dev/null` || true
if echo "$out" | grep -qsi "^No Sockets found in "; then