Tweak default recommended PS1 value

This commit is contained in:
2013-03-21 18:22:15 +00:00
parent 754b00f394
commit c2b16d3d41
2 changed files with 2 additions and 3 deletions

View File

@@ -26,8 +26,7 @@ Edit your `~/.profile` or `~/.bash_profile` and add the following to the top:
export GITAWAREPROMPT=~/.bash/git-aware-prompt export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh 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: Optionally, if you want a nice pretty prompt when using `sudo -s`, also add this line:

View File

@@ -42,7 +42,7 @@ find_git_dirty() {
PROMPT_COMMAND="find_git_branch; find_git_dirty; $PROMPT_COMMAND" PROMPT_COMMAND="find_git_branch; find_git_dirty; $PROMPT_COMMAND"
# Default Git enabled prompt with dirty state # 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: # Another variant:
# export PS1="\[$bldgrn\]\u@\h\[$txtrst\] \w\[$bldylw\]\$git_branch\[$txtcyn\]\$git_dirty\[$txtrst\]\$ " # export PS1="\[$bldgrn\]\u@\h\[$txtrst\] \w\[$bldylw\]\$git_branch\[$txtcyn\]\$git_dirty\[$txtrst\]\$ "