mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-03-15 17:16:20 +08:00
Merge pull request #70 from zdavison/master
Corrected glyphs for agnoster theme.
This commit is contained in:
commit
f50e96b8fc
@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
|
|
||||||
set -g current_bg NONE
|
set -g current_bg NONE
|
||||||
set segment_separator \u2b80
|
set segment_separator \uE0B0
|
||||||
set right_segment_separator \u2b80
|
set right_segment_separator \uE0B0
|
||||||
# ===========================
|
# ===========================
|
||||||
# Helper methods
|
# Helper methods
|
||||||
# ===========================
|
# ===========================
|
||||||
@ -114,7 +114,8 @@ function prompt_git -d "Display the actual git state"
|
|||||||
set -l branch (command git show-ref --head -s --abbrev |head -n1 2> /dev/null)
|
set -l branch (command git show-ref --head -s --abbrev |head -n1 2> /dev/null)
|
||||||
set ref "➦ $branch "
|
set ref "➦ $branch "
|
||||||
end
|
end
|
||||||
set -l branch (echo $ref | sed 's-refs/heads/-⭠ -')
|
set branch_symbol \uE0A0
|
||||||
|
set -l branch (echo $ref | sed "s-refs/heads/-$branch_symbol -")
|
||||||
if [ "$dirty" != "" ]
|
if [ "$dirty" != "" ]
|
||||||
prompt_segment yellow black "$branch $dirty"
|
prompt_segment yellow black "$branch $dirty"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user