From 0c40d8618cc4decea592a9ea9db9abcfdd62e990 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 17 Dec 2022 12:42:26 -0500 Subject: [PATCH] Auto git pull --- .bashrc | 6 ++++-- run_as_sudo.sh | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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