From 3b6c639737e7a980143d1d8d73f28b03d133c99e Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sat, 30 Jun 2018 10:02:50 +0200 Subject: [PATCH] Update PS1 --- .bashrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index f25a908..3c671de 100644 --- 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 -- 2.43.0