feat: add pulling from remote to .bashrc

This commit is contained in:
Mohammad Rafiq 2025-02-10 21:27:57 +08:00
parent bb75efbdf8
commit 4042cf8e0e

11
.bashrc
View file

@ -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"