fix: add branch information to .bashrc
This commit is contained in:
parent
4042cf8e0e
commit
1ed5e8a793
1 changed files with 3 additions and 1 deletions
4
.bashrc
4
.bashrc
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue