From 5ad9e1c5dca2c00e87c6ed3a6fa2b234d99fed44 Mon Sep 17 00:00:00 2001 From: nojhan Date: Tue, 14 Aug 2012 10:56:34 +0200 Subject: [PATCH] bring back B&W colors, alt user in bold --- liquidprompt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 0db4578..dda4d4d 100755 --- a/liquidprompt +++ b/liquidprompt @@ -133,6 +133,11 @@ if [[ "$LP_OS" == "FreeBSD" ]] ; then BOLD="${_LP_OPEN_ESC}$(tput md)${_LP_CLOSE_ESC}" + BLACK="${_LP_OPEN_ESC}$(tput AF 0)${_LP_CLOSE_ESC}" + BOLD_GRAY="${_LP_OPEN_ESC}$(tput md ; tput AF 0)${_LP_CLOSE_ESC}" + WHITE="${_LP_OPEN_ESC}$(tput AF 7)${_LP_CLOSE_ESC}" + BOLD_WHITE="${_LP_OPEN_ESC}$(tput md ; tput AF 7)${_LP_CLOSE_ESC}" + RED="${_LP_OPEN_ESC}$(tput AF 1)${_LP_CLOSE_ESC}" BOLD_RED="${_LP_OPEN_ESC}$(tput md ; tput AF 1)${_LP_CLOSE_ESC}" WARN_RED="${_LP_OPEN_ESC}$(tput AF 0 ; tput setab 1)${_LP_CLOSE_ESC}" @@ -159,6 +164,11 @@ else # default to Linux BOLD="${_LP_OPEN_ESC}$(tput bold)${_LP_CLOSE_ESC}" + BLACK="${_LP_OPEN_ESC}$(tput setaf 0)${_LP_CLOSE_ESC}" + BOLD_GRAY="${_LP_OPEN_ESC}$(tput bold ; tput setaf 0)${_LP_CLOSE_ESC}" + WHITE="${_LP_OPEN_ESC}$(tput setaf 7)${_LP_CLOSE_ESC}" + BOLD_WHITE="${_LP_OPEN_ESC}$(tput bold ; tput setaf 7)${_LP_CLOSE_ESC}" + RED="${_LP_OPEN_ESC}$(tput setaf 1)${_LP_CLOSE_ESC}" BOLD_RED="${_LP_OPEN_ESC}$(tput bold ; tput setaf 1)${_LP_CLOSE_ESC}" WARN_RED="${_LP_OPEN_ESC}$(tput setaf 0 ; tput setab 1)${_LP_CLOSE_ESC}" @@ -248,7 +258,7 @@ _lp_user() if [[ "$EUID" -ne "0" ]] ; then # if user is not login user if [[ ${USER} != "$(logname 2>/dev/null)" ]]; then - user="${_LP_USER_SYMBOL}${NO_COL}" + user="${BOLD}${_LP_USER_SYMBOL}${NO_COL}" else user="${_LP_USER_SYMBOL}" fi