Use the branch symbol in the Supplementary Special purpose Plane
It seems to be in the fonts I like to use... so...
This commit is contained in:
@ -125,10 +125,15 @@ if( 0 == ${__res} ) then
|
|||||||
if( ! -z "${git_branch}" ) then
|
if( ! -z "${git_branch}" ) then
|
||||||
set branch_space=30
|
set branch_space=30
|
||||||
set branch_indent=16
|
set branch_indent=16
|
||||||
set git_branch_reserve=`echo ${git_branch} | wc -c` >& /dev/null
|
#set git_branch_reserve=`echo ${git_branch} | wc -c` >& /dev/null
|
||||||
set git_prompt="%{${csi}${branch_indent}C${csi}mBranch: ${csi}3;38;2;255;192;192m${git_branch}${csi}m${csi}${branch_space}C\n%}"
|
#set git_prompt="%{${csi}${branch_indent}C${csi}mBranch: ${csi}3;38;2;255;192;192m${git_branch}${csi}m${csi}${branch_space}C\n%}"
|
||||||
|
|
||||||
|
|
||||||
|
# If the font doesn't support the special branch symbol...
|
||||||
|
set branch_symbol=`printf "\uE0A0"`
|
||||||
|
# I could always fallback to this one... (keep padded spaces... for alignment)
|
||||||
|
#set branch_symbol=`printf "\u2387 "`
|
||||||
|
|
||||||
set branch_symbol=`printf "\u2387"`
|
|
||||||
set git_prompt="%{${csi}0;60m%}(${branch_symbol} %{${csi}3;4;38;2;255;192;192;58;2;255;255;255;68;2;255;255;255m%}${git_branch}%{${csi}m%}) "
|
set git_prompt="%{${csi}0;60m%}(${branch_symbol} %{${csi}3;4;38;2;255;192;192;58;2;255;255;255;68;2;255;255;255m%}${git_branch}%{${csi}m%}) "
|
||||||
#set git_prompt="%{${csi}10D${csi}2D(xyz${git_branch})${csi}m%%}"
|
#set git_prompt="%{${csi}10D${csi}2D(xyz${git_branch})${csi}m%%}"
|
||||||
#set git_prompt="%{${csi}0;35m${csi}50D${git_branch} %}"
|
#set git_prompt="%{${csi}0;35m${csi}50D${git_branch} %}"
|
||||||
|
|||||||
Reference in New Issue
Block a user