mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
show full branch name in prompt
This commit is contained in:
parent
805fc73e95
commit
1cbb7d6c02
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ gitbranch() {
|
|||
read head < "$gitdir/HEAD"
|
||||
case "$head" in
|
||||
ref:*)
|
||||
branch="${head##*/}"
|
||||
branch="${head#*/*/}"
|
||||
;;
|
||||
"")
|
||||
branch=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue