Merge branch 'master' of https://gitea.nerdland.org/adam/cshenv into master

* 'master' of https://gitea.nerdland.org/adam/cshenv:
  Gracefully handle no unicode in printf
  Probe the local printf for unicode

 Conflicts:
	tcshrc.aliases
This commit is contained in:
2026-02-15 23:00:22 -05:00
3 changed files with 30 additions and 9 deletions
+9 -4
View File
@@ -278,10 +278,15 @@ if( 0 == ${__res} ) then
#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\ \ '`
if( ! $?CSHENV_NO_UNICODE_PRINTF ) then
# 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\ \ '`
else
# Non unicode fallback 'X'
set branch_symbol='X'
endif
git rev-list --count --left-right \@\{upstream\}..HEAD>&/dev/null
set __res=$?
#echo "Got: ${git_counts}"