X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fsetup_rc;h=dfb57866a02920b2e408cebea6350f46ea7987f3;hb=82ff63ad8cecdfe19030d4f2d238d8d88116d106;hp=14fc98770cc2d166583c4e75d57821a2290862a4;hpb=fdddbe9be698e933004e960ac1c25057c5f30fbf;p=clearscm.git diff --git a/rc/setup_rc b/rc/setup_rc index 14fc987..dfb5786 100755 --- a/rc/setup_rc +++ b/rc/setup_rc @@ -53,6 +53,16 @@ if [ ! -d $HOME/.rc ]; then exit 1 fi +# Check to see if we were already setup +if [ "$symlink" = "->" ]; then + to=$(stat -c %N ~/.bashrc | awk '{print $NF}') + + if [[ "$to" =~ .rc\/bash_login ]]; then + echo "Already setup" + exit + fi +fi + ReplaceFile "$HOME/.Xdefaults" "$HOME/.rc/Xdefaults" ReplaceFile "$HOME/.bash_login" "$HOME/.rc/bash_login" ReplaceFile "$HOME/.bashrc" "$HOME/.rc/bash_login"