From 1ed5e8a79371ce1ee59aa2746c1d8ab664770c15 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 10 Feb 2025 21:38:14 +0800 Subject: [PATCH] fix: add branch information to .bashrc --- .bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index b159a63..451586b 100644 --- a/.bashrc +++ b/.bashrc @@ -1,6 +1,6 @@ # Pull the latest changes from the remote (but only once!) if ! [ -v REPO_INITIALISED ]; then - git pull --quiet && export REPO_INITIALISED=true + git pull origin main --quiet && export REPO_INITIALISED=true echo "dotfiles loaded!" fi @@ -111,6 +111,8 @@ fi export NVM_DIR="$HOME/.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 export PATH="$HOME/bin:$PATH" \ No newline at end of file