mirror of
https://github.com/jimeh/git-aware-prompt.git
synced 2026-02-18 21:26:39 +00:00
Tweak default recommended PS1 value
This commit is contained in:
@@ -26,8 +26,7 @@ Edit your `~/.profile` or `~/.bash_profile` and add the following to the top:
|
||||
|
||||
export GITAWAREPROMPT=~/.bash/git-aware-prompt
|
||||
source $GITAWAREPROMPT/main.sh
|
||||
export PS1="\u@\h \w\[$txtcyn\]\$git_branch\[$txtylw\]\$git_dirty\[$txtrst\]\$ "
|
||||
|
||||
export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
|
||||
|
||||
Optionally, if you want a nice pretty prompt when using `sudo -s`, also add this line:
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ find_git_dirty() {
|
||||
PROMPT_COMMAND="find_git_branch; find_git_dirty; $PROMPT_COMMAND"
|
||||
|
||||
# Default Git enabled prompt with dirty state
|
||||
# export PS1="\u@\h \w\[$txtcyn\]\$git_branch\$git_dirty\[$txtrst\]\$ "
|
||||
# export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
|
||||
|
||||
# Another variant:
|
||||
# export PS1="\[$bldgrn\]\u@\h\[$txtrst\] \w\[$bldylw\]\$git_branch\[$txtcyn\]\$git_dirty\[$txtrst\]\$ "
|
||||
|
||||
Reference in New Issue
Block a user