bashrc: formatting
This commit is contained in:
parent
57f272664d
commit
3e6a469f2b
1 changed files with 7 additions and 7 deletions
14
bash/bashrc
14
bash/bashrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue