diff --git a/.bashrc b/.bashrc index 31e5817..2028c6e 100644 --- a/.bashrc +++ b/.bashrc @@ -113,5 +113,7 @@ fi if [ -f ~/.bash-fzfrc ] ; then . ~/.bash-fzfrc fi -PS1='\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ ' -PS1='\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ ' + +if [ -f ~/git/dotfiles ] ; then + (cd ~/git/dotfiles && git pull) +fi diff --git a/run_as_sudo.sh b/run_as_sudo.sh index c25a1cf..c948b28 100644 --- a/run_as_sudo.sh +++ b/run_as_sudo.sh @@ -2,6 +2,10 @@ rm ../../.bash* /root/.bash* ln ./.bash* /root ln ./.bash* ../../ + +rm /root/.bashrc +cp .bashrc /root + export TERM=xterm-color cat << EOF >> /root/.bashrc