|
|
@ -25,7 +25,7 @@ export PATH="${HOME}/.local/bin/:${HOME}/go/bin:${HOME}/.cargo/bin:${PATH}" |
|
|
|
setopt prompt_subst |
|
|
|
|
|
|
|
function git_branch_name() { |
|
|
|
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}') |
|
|
|
branch=$(git symbolic-ref HEAD 2> /dev/null | sed 's/refs\/heads\///g') |
|
|
|
if [[ $branch != "" ]]; then |
|
|
|
echo "- ${branch} " |
|
|
|
fi |
|
|
|