Update PS1 with git branch
This commit is contained in:
parent
ad34a7ec92
commit
b660bc0ae9
1 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,9 @@ alias tcat='highlight -O ansi --force'
|
|||
|
||||
alias dc="docker-compose"
|
||||
|
||||
PS1="\n\[\e[30;01m\](\[\e[31;01m\]\w\[\e[30;01m\])\[\e[30;1m\]\n\[\e[30;1m\](\[\e[34m\]\$(/bin/date +'%a %b %e %-I:%M:%S %Z %Y')\[\e[30;1m\])\n\[\e[30;1m\](\[\e[32;1m\]\u @ \h\[\e[30;1m\])-> \[\e[0m\]"
|
||||
# PS1="\n\[\e[30;01m\](\[\e[31;01m\]\w\[\e[30;01m\])\[\e[30;1m\]\n\[\e[30;1m\](\[\e[34m\]\$(/bin/date +'%a %b %e %-I:%M:%S %Z %Y')\[\e[30;1m\])\n\[\e[30;1m\](\[\e[32;1m\]\u @ \h\[\e[30;1m\])-> \[\e[0m\]"
|
||||
|
||||
PS1="\n\[\e[30;01m\](\[\e[31;01m\]\w\[\e[30;01m\]) \[\033[30;01m\]\$(parse_git_branch)\n\[\e[30;1m\]\[\e[30;1m\](\[\e[34m\]\$(/bin/date +'%a %b %e %-I:%M:%S %Z %Y')\[\e[30;1m\])\n\[\e[30;1m\](\[\e[32;1m\]\u\[\e[30;1m\])-> \[\e[0m\]"
|
||||
|
||||
# Use bash-completion, if available
|
||||
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue