fix: add branch information to .bashrc

This commit is contained in:
Mohammad Rafiq 2025-02-10 21:38:14 +08:00
parent 4042cf8e0e
commit 1ed5e8a793

View file

@ -1,6 +1,6 @@
# Pull the latest changes from the remote (but only once!) # Pull the latest changes from the remote (but only once!)
if ! [ -v REPO_INITIALISED ]; then if ! [ -v REPO_INITIALISED ]; then
git pull --quiet && export REPO_INITIALISED=true git pull origin main --quiet && export REPO_INITIALISED=true
echo "dotfiles loaded!" echo "dotfiles loaded!"
fi fi
@ -111,6 +111,8 @@ fi
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This enables NVM [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This enables NVM
# Theming
export PS1="\[\e[36m\]$(date +'%H:%M:%S')\[\e[32m\]$USER \[\e[35m\]\w \[\e[31m\]$ "
# Path setting # Path setting
export PATH="$HOME/bin:$PATH" export PATH="$HOME/bin:$PATH"