commit d1a06929cbde888a0340152e56fc1333ebd0dfda parent 6e48d5f7d94ff0759567b57b012338f12e474946 Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Wed, 1 May 2024 22:17:04 -0500 bash: improve prompt with git_ps1 Diffstat:
| M | .bashrc | | | 10 | ++++++++-- |
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/.bashrc b/.bashrc @@ -35,8 +35,14 @@ GPG_TTY=$(tty) [ -f /usr/share/git/completion/git-prompt.sh ] && source /usr/share/git/completion/git-prompt.sh #export GIT_PS1_SHOWCOLORHINTS=1 -#export GIT_PS1_SHOWDIRTYSTATE=1 -PS1='\$$(__git_ps1) ' +export GIT_PS1_SHOWDIRTYSTATE=1 +export GIT_PS1_SHOWSTASHSTATE=1 +export GIT_PS1_SHOWUNTRACKEDFILES=1 +export GIT_PS1_SHOWUPSTREAM="auto" +export GIT_PS1_COMPRESSSPARSESTATE=1 +export GIT_PS1_SHOWCONFLICTSTATE=1 +export GIT_PS1_HIDE_IF_PWD_IGNORED=1 +PS1='\$$(GIT_DIR=$HOME/.dotfiles GIT_WORK_TREE=$HOME __git_ps1)$(__git_ps1) ' cd() { echo "Use pushd!"; }