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
+10 -5
View File
@@ -99,11 +99,16 @@ set referencechars_raw="${referencechars_raw} 262e"
set prompt_hcolor=0
set prompt_hsym=0
set referencechars=()
foreach ch ($referencechars_raw)
set unicode=`printf "\\u${ch}"`
set referencechars=( $referencechars `printf "${unicode}"` )
end
if( ! $?CSHENV_NO_UNICODE_PRINTF ) then
set referencechars=()
foreach ch ($referencechars_raw)
set unicode=`printf "\\u${ch}"`
set referencechars=( $referencechars `printf "${unicode}"` )
end
else
# Safe fallback for when there's no unicode printf
set referencechars="A B C D X Y Z"
endif
# Rotation
alias precmd 'source ${CSHENV_DIR}/tcshrc.prompt.final'