From 4042cf8e0e37252dfc251f6bbbb43489ee43fd95 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 10 Feb 2025 21:27:57 +0800 Subject: [PATCH] feat: add pulling from remote to .bashrc --- .bashrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 1b2be68..b159a63 100644 --- a/.bashrc +++ b/.bashrc @@ -1,3 +1,9 @@ +# Pull the latest changes from the remote (but only once!) +if ! [ -v REPO_INITIALISED ]; then + git pull --quiet && export REPO_INITIALISED=true + echo "dotfiles loaded!" +fi + # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples @@ -105,5 +111,6 @@ fi export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This enables NVM -export PATH="$HOME/bin:$PATH" -echo "Hello! .bashrc loaded." + +# Path setting +export PATH="$HOME/bin:$PATH" \ No newline at end of file