feat(bash): add some info to bash prompt

This commit is contained in:
Mohammad Rafiq 2025-02-21 03:33:23 +08:00
parent 6b1f29980e
commit 9fea6948e0

View file

@ -115,7 +115,7 @@ export NVM_DIR="$HOME/.nvm"
export PATH="$HOME/nvim/bin:$PATH"
# Theming
export PS1="\[\e[36m\]$(date +'%H:%M:%S')\[\e[32m\]$USER \[\e[35m\]\w \[\e[31m\]$ "
PS1="$GREEN\u@\h${NC}:$YELLOW\w${NC} $(git branch 2>/dev/null | sed -e '/^[^*]/ d' -e 's/* \(.*\)/\[\1\]/')"'$ '
# Path Setting - Make sure $HOME/bin exists and only add it once.
if [ -d "$HOME/bin" ] && ! echo "$PATH" | grep -q "$HOME/bin"; then