]> git.zndr.dk Git - dotfiles.git/commitdiff
Update PS1
authorJannik ZANDER <jannikz@gmail.com>
Sat, 30 Jun 2018 08:02:50 +0000 (10:02 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Sat, 30 Jun 2018 08:02:50 +0000 (10:02 +0200)
.bashrc

diff --git a/.bashrc b/.bashrc
index f25a908bb9c720c911bb202d39e1230c720266c6..3c671de5ed10e47bd2954ef202475e0dd46cc384 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -4,7 +4,17 @@
 [[ -z "$PS1" ]] && return
 
 # Set prompt
-export PS1="\\w\$(__git_ps1 '(%s)') \$ "
+PS1='\[\033[32m\]\u \[\033[36m\]@ \h \w\[\033[32m\]$(__git_ps1)\nā””ā”€ \$ ā–¶\[\033[0m\] '
+
+export GIT_PS1_SHOWDIRTYSTATE=1
+export GIT_PS1_SHOWCOLORHINTS=1
+export GIT_PS1_SHOWUNTRACKEDFILES=1
+export GIT_PS1_SHOWSTASHSTATE=1
+export GIT_PS1_SHOWUPSTREAM="auto"
+export GIT_PS1_HIDE_IF_PWD_IGNORED=1
+
+# Whenever displaying the prompt, write the previous line to disk
+export PROMPT_COMMAND="history -a;"
 
 # Set favorites
 export SHELL='bash'
@@ -20,8 +30,6 @@ export HISTSIZE=5000;
 export HISTCONTROL=ignoreboth:erasedups
 export HISTIGNORE="ll:ls:cd:cd -:pwd:exit:date:* --help";
 
-# Whenever displaying the prompt, write the previous line to disk
-export PROMPT_COMMAND="history -a;"
 
 # Load aliases, functions, etc
 for file in ${HOME}/.config/bash/*; do