bashrc: formatting

This commit is contained in:
Bill Niblock 2017-11-13 16:35:56 -05:00
parent 57f272664d
commit 3e6a469f2b

View file

@ -10,13 +10,13 @@ fi
# Prompt
#===============================================================================
if [[ ${EUID} == 0 ]] ; then
export PS1="\t \u@\h:\w \$"
else
mp_time="\[\$(tput setaf 6)\][ \t ]"
mp_who="\[\$(tput setaf 2)\]\u\[\$(tput setaf 7)\]@\\[\$(tput setaf 2)\]\h"
mp_whr="\[\$(tput setaf 7)\]:\[\$(tput setaf 5)\]\w"
mp_git="\[\$(tput sgr0)\]\[\$(show_git_info)\] "
export PS1="$mp_time $mp_who$mp_whr$mp_git\n\$ "
export PS1="\t \u@\h:\w \$"
else
mp_time="\[\$(tput setaf 6)\][ \t ]"
mp_who="\[\$(tput setaf 2)\]\u\[\$(tput setaf 7)\]@\\[\$(tput setaf 2)\]\h"
mp_whr="\[\$(tput setaf 7)\]:\[\$(tput setaf 5)\]\w"
mp_git="\[\$(tput sgr0)\]\[\$(show_git_info)\] "
export PS1="$mp_time $mp_who$mp_whr$mp_git\n\$ "
fi
#===============================================================================
# Aliases