adjust things my way

This commit is contained in:
Thomas Ruoff
2017-08-14 23:37:35 +02:00
parent a638143b7f
commit d8e9b19ba1
15 changed files with 18 additions and 140 deletions

View File

@@ -1,6 +1,6 @@
# modify the prompt to contain git branch name if applicable
git_prompt_info() {
current_branch=$(git current-branch 2> /dev/null)
current_branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
if [[ -n $current_branch ]]; then
echo " %{$fg_bold[green]%}$current_branch%{$reset_color%}"
fi