From 0fb3c45097d0c30a3b07bb87d8238ce64c17da6b Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sun, 8 Aug 2010 22:06:24 -0500 Subject: [PATCH] .bashrc: Always overwrite $HOME/$LOGNAME/$UNAME/$HOSTFILE/$INPUTRC Always overwrite $HOME/$LOGNAME/$UNAME/$HOSTFILE/$INPUTRC to ensure they get re-set when su'ing to root --- .bashrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index c9a4a8f..a4d7546 100644 --- a/.bashrc +++ b/.bashrc @@ -4,15 +4,15 @@ # Tony Duckles (based on http://github.com/rtomayko/dotfiles) # the basics -: ${HOME=~} -: ${LOGNAME=$(id -un)} -: ${UNAME=$(uname)} +HOME=~ +LOGNAME=$(id -un) +UNAME=$(uname) # complete hostnames from this file -: ${HOSTFILE=~/.ssh/known_hosts} +HOSTFILE=~/.ssh/known_hosts # readline config -: ${INPUTRC=~/.inputrc} +INPUTRC=~/.inputrc if [ "$UNAME" = "Darwin" ]; then # Fink init, for OSX @@ -149,7 +149,7 @@ prompt_compact() { } prompt_color() { - PS1="[${COLOR1}\u${PS_CLEAR}@${COLOR2}\h${PS_CLEAR}:${COLOR3}\w${PS_CLEAR}]${COLOR1}$P${PS_CLEAR} " + PS1="[${COLOR1}\u${PS_CLEAR}@${COLOR2}\h${PS_CLEAR}:${COLOR3}\w${PS_CLEAR}]${COLOR1}${P}${PS_CLEAR} " PS2="\[^[[33;1m\]continue \[^[[0m^[[1m\]> " } -- 2.45.2