Bash git-prompt: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

9 February 2024

  • curprev 01:4201:42, 9 February 2024Admin talk contribs 373 bytes −31 No edit summary
  • curprev 01:4201:42, 9 February 2024Admin talk contribs 404 bytes −6 No edit summary
  • curprev 01:4201:42, 9 February 2024Admin talk contribs 410 bytes +410 Created page with " ---automatically change the prompt when you're in a git directory--- <pre> ---[~/.bashrc]--- # uncomment these 5 lines to automatically show a different PS1 prompt when you enter a git directory GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWCOLORHINTS=true PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "' source /usr/lib/git-core/git-sh-prompt ---[]--- </pre>"