add gitstatus prompt
This commit is contained in:
parent
d5ca23a06c
commit
39ce8b048f
3 changed files with 8 additions and 1 deletions
3
bashrc
3
bashrc
|
|
@ -8,7 +8,8 @@ export SHELL_CONFIG="$SHELL_CONFIG:.bashrc"
|
|||
|
||||
export HISTCONTROL=ignoreboth:erasedups
|
||||
|
||||
PS1='[\u@\h \W]\$ '
|
||||
[ -f "$HOME/.config/bash/gitstatus/gitstatus.prompt.sh" ] && . "$HOME/.config/bash/gitstatus/gitstatus.prompt.sh"
|
||||
PS1='\t \[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]${GITSTATUS_PROMPT:+ $GITSTATUS_PROMPT}\n\[\033[01;$((31+!$?))m\]\$\[\033[00m\] \[\e]0;\u@\h: \w\a\]'
|
||||
|
||||
source ~/.profile
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue