1
0
Fork 0

some config insanity, get rid of bold highlighting in favour of proper black, also some zshrc tweaks

This commit is contained in:
Von Random 2017-05-29 20:02:09 +03:00
parent 6237ee1294
commit 0eafdc61be
5 changed files with 51 additions and 60 deletions

8
bashrc
View file

@ -56,11 +56,11 @@ prompt_command()
prompt_user="${pred}\u${preset} "
fi
if ((UID)); then
bang="${pbold}>"
bang="${pblack}>"
else
bang="${pbold}${pred}>"
bang="${pred}>"
fi
ps_line1="[ ${prompt_user}${HOSTNAME}:${pbold}$(pwd)${preset} ]"
ps_line1="[ ${prompt_user}${HOSTNAME}:${pblack}$(pwd)${preset} ]"
ps_line2="${bang}${preset} "
PS1="${ps_line1}\n${ps_line2}"
}
@ -143,5 +143,5 @@ plugins="${HOME}/.bashplugins"
[[ -r "${plugins}" && "$BASH_VERSINFO" -ge 4 ]] && . "${plugins}"
# we want to see exit code on error (it also has to be the last entry here)
trap 'printf "${bold}${red}>>${reset} ${bold}exit${reset} ${bold}${red}%s${reset}\n" "$?" >&2' ERR
trap 'printf "${red}>>${reset} ${black}exit${reset} ${red}%s${reset}\n" "$?" >&2' ERR
# }}}