summaryrefslogtreecommitdiff
path: root/.config/bash/environment.sh
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2017-10-09 02:41:41 +0200
committerBenjamin Franzke <benjaminfranzke@gmail.com>2017-10-09 02:41:41 +0200
commitc3e5ef3641fdc8a23a7a5caffaf212fcdb91c859 (patch)
treea77b86be47fbd5c9377665d768487497522b9205 /.config/bash/environment.sh
parent852334c5bb2770de2a78bbd0ce29c42c9a95b9c0 (diff)
downloaddotfiles-c3e5ef3641fdc8a23a7a5caffaf212fcdb91c859.tar.gz
dotfiles-c3e5ef3641fdc8a23a7a5caffaf212fcdb91c859.tar.bz2
dotfiles-c3e5ef3641fdc8a23a7a5caffaf212fcdb91c859.zip
bash: Add git prompt
Diffstat (limited to '.config/bash/environment.sh')
-rw-r--r--.config/bash/environment.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/bash/environment.sh b/.config/bash/environment.sh
index e11efa3..0b472fb 100644
--- a/.config/bash/environment.sh
+++ b/.config/bash/environment.sh
@@ -32,7 +32,8 @@ else
fi
NOR_COL='\[\e[0m\]'
-PS1="${DELIM_COL}[${DIR_COL}\W${DELIM_COL}] \\\$ ${NOR_COL}"
+source ~/.config/bash/git-prompt.sh
+PS1="${DELIM_COL}[${DIR_COL}\W${DELIM_COL}]\$(__git_ps1 \" (%s)\") \\\$ ${NOR_COL}"
[[ -n $SSH_CLIENT ]] && PS1="${UNAME_COL}`[[ ${EUID} != 0 ]] && echo '\u@'`\h $PS1"
unset BRACKET_COL DIR_COL PROMPT_COL NOR_COL UNAME_COL