From: Jannik ZANDER Date: Sat, 30 Jun 2018 08:02:50 +0000 (+0200) Subject: Update PS1 X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=3b6c639737e7a980143d1d8d73f28b03d133c99e;p=dotfiles.git Update PS1 --- 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