Skip to content

Fix utf-8 prompt

Compare
Choose a tag to compare
@const-bon const-bon released this 31 Oct 11:11
· 578 commits to main since this release

what

  • Use special bash 3.2+ feature for outputting utf8 characters ($'\uXXXX')
  • Explicitly set locale (sorry, hardcoded to en_US.utf8)

why

  • This seems to fix the prompt line wrapping problems
  • \[....\] does not help with utf8 characters (only ansi)