mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 23:17:22 +01:00
adjust things my way
This commit is contained in:
committed by
Thomas Ruoff
parent
bc1bd4f5e6
commit
0331a6f779
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user