diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index 82deb97..6481b87 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -101,8 +101,8 @@ set prompt_hsym=0 set referencechars=() foreach ch ($referencechars_raw) - set unicode=`printf "\\u${ch}"` - set referencechars=( $referencechars `printf "${unicode}"` ) + set unicode=`gprintf "\\u${ch}"` + set referencechars=( $referencechars `gprintf "${unicode}"` ) end if( $CSHENV_SYSTEM == "Darwin" ) then diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index 8191a6b..1aa1694 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -281,9 +281,9 @@ if( 0 == ${__res} ) then # If the font doesn't support the special branch symbol... - set branch_symbol=`printf "\uE0A0"` + set branch_symbol=`gprintf "\uE0A0"` # I could always fallback to this one... (keep padded spaces... for alignment) - set branch_symbol=`printf '\u2387\ \ '` + set branch_symbol=`gprintf '\u2387\ \ '` git rev-list --count --left-right \@\{upstream\}..HEAD>&/dev/null set __res=$? #echo "Got: ${git_counts}"