sundry/qi3ber2.sh

33 lines
885 B
Bash
Raw Permalink Normal View History

2014-11-04 17:44:18 -05:00
function qi3ber2() {
export PROMPT_COMMAND=prompt_command
if [ -n "$1" ]; then
set_palette $1
fi
2016-09-23 19:23:28 -04:00
2014-11-04 17:44:18 -05:00
RETCODE="\$( printf "%3s" \$CODE )"
2016-09-23 19:23:28 -04:00
UL="┌"
UR="┐"
MID="─"
ML="┤"
MR="├"
LL="└"
LR="┘"
2016-09-23 19:23:28 -04:00
LINEONE="${Theme[0]}${UL}${MID}${ML} ${Theme[3]}\u${Theme[1]}@${Theme[4]}\h${ResetColours}:${Theme[7]}${TTY}${Theme[0]} ${MR}${UR}"
2014-11-04 17:44:18 -05:00
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}"
2016-09-23 19:23:28 -04:00
2014-11-04 17:44:18 -05:00
PS1="${XTERM}$LINEONE \n$LINETWO \n$LINETHR \$${ResetColours} "
export PS1
2016-09-23 19:23:28 -04:00
2014-11-04 17:44:18 -05:00
PS2="${Theme[0]}-${Theme[1]}*${Theme[2]}->${Theme[8]}\$${ResetColours} "
export PS2
2016-09-23 19:23:28 -04:00
2014-11-04 17:44:18 -05:00
export OPROMPT=qi3ber2
2016-09-23 19:23:28 -04:00
2014-11-04 17:44:18 -05:00
unset LINEONE
unset LINETWO
unset LINETHR
}