Skip to content

Instantly share code, notes, and snippets.

@fxrobin
Last active March 3, 2024 13:55
Show Gist options
  • Select an option

  • Save fxrobin/9a03a214972f2377a8ff67a49410acad to your computer and use it in GitHub Desktop.

Select an option

Save fxrobin/9a03a214972f2377a8ff67a49410acad to your computer and use it in GitHub Desktop.
BASH PROMPT for GIT

This bash prompt enables git information for the current directory.

export PS1=$'\\n\[\\e[97;44m\\] \\u \\[\\e[34;106m\\] \\w \\[\\e[30;107m\\]$(GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWDIRTYSTATE=1 __git_ps1) \\[\\e[00m\\] \\n\u25B8 '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment