Add gitfull bashprompt

This commit is contained in:
Talia 2020-02-04 21:52:08 +01:00
parent fda1e47832
commit c310c97249
1 changed files with 3 additions and 0 deletions

3
bashrc
View File

@ -50,6 +50,9 @@ export PS1nogit='\[\033[00;34m\]┌─╼ \033[00;31m$(rlevel)\[\033[01;35m\]\u\
export PS1git='\[\033[00;37m\]$(gitprompt || dirs +0) \[\033[00;36m\]$(gitpath) \[\033[00;36m\]$(rlevel 🥆) export PS1git='\[\033[00;37m\]$(gitprompt || dirs +0) \[\033[00;36m\]$(gitpath) \[\033[00;36m\]$(rlevel 🥆)
\[\033[00;34m\]\[\033[00m\]' \[\033[00;34m\]\[\033[00m\]'
export PS1gitlong='\[\033[00;37m\]$(gitprompt || dirs +0) \[\033[00;37m\]$(git log --oneline --no-decorate -1 2>/dev/null) \[\033[00;36m\]$(rlevel 🥆)
\[\033[00;36m\]$(gitpath)\[\033[00;31m\]» \[\033[00m\]'
prompt() { prompt() {
name=PS1$1 name=PS1$1
if [ -z $1 ] || [ -z "${!name}" ]; then if [ -z $1 ] || [ -z "${!name}" ]; then