From 861132a18710d21916a40bae00cfffb820a10a72 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 18 May 2022 00:09:50 -0400 Subject: [PATCH] Use the branch symbol in the Supplementary Special purpose Plane It seems to be in the fonts I like to use... so... --- tcshrc.prompt.final | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index ac6d154..de1fd53 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -125,11 +125,16 @@ if( 0 == ${__res} ) then if( ! -z "${git_branch}" ) then set branch_space=30 set branch_indent=16 - 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_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 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%}) " + + # 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 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}0;35m${csi}50D${git_branch} %}" endif