From e4077abbe387a0f935538eaab39fbacc70d5c558 Mon Sep 17 00:00:00 2001 From: Orien Vandenbergh Date: Tue, 4 Nov 2014 15:44:18 -0700 Subject: [PATCH] the qi3ber2 prompt now included --- qi3ber2.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 qi3ber2.sh diff --git a/qi3ber2.sh b/qi3ber2.sh new file mode 100644 index 0000000..b7e4dc9 --- /dev/null +++ b/qi3ber2.sh @@ -0,0 +1,32 @@ +function qi3ber2() { + export PROMPT_COMMAND=prompt_command + if [ -n "$1" ]; then + set_palette $1 + fi + + RETCODE="\$( printf "%3s" \$CODE )" + + UL="" + UR="" + MID="" + ML="" + MR="" + LL="" + LR="" + + LINEONE="${Theme[0]}${UL}${MID}${ML} ${Theme[3]}\u${Theme[1]}@${Theme[4]}\h${ResetColours}:${Theme[7]}$TTY}${Theme[0]} ${MR}${UR}" + LINETWO="${Theme[0]}${MR}${MID}${ML} ${Theme[6]}$$${ResetColours}:${Theme[7]}${LOADAVG}${Theme[0]} @ ${Theme[8]}${DATE}${Theme[0]} ${MR}${ML} ${Theme[5]}\w${Theme[0]} ${MR}${UR}" + LINETHR="${Theme[0]}${LL}${MID}${ML} ${Theme[2]}\! ${Theme[9]}${RETCODE}${Theme[0]} ${MR}${UR}" + + PS1="${XTERM}$LINEONE \n$LINETWO \n$LINETHR \$${ResetColours} " + export PS1 + + PS2="${Theme[0]}-${Theme[1]}*${Theme[2]}->${Theme[8]}\$${ResetColours} " + export PS2 + + export OPROMPT=qi3ber2 + + unset LINEONE + unset LINETWO + unset LINETHR +}