From 3e6a469f2bdf533549fb56134811151b123db3e7 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Mon, 13 Nov 2017 16:35:56 -0500 Subject: [PATCH] bashrc: formatting --- bash/bashrc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index b66a0ec..5b8f01e 100644 --- a/bash/bashrc +++ b/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