From bbca481fc49169728104c18b0c4dc727b9581013 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 29 Apr 2023 15:23:07 +0200 Subject: [PATCH] zsh: locale kludge --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index 409fd34..32b07f4 100644 --- a/.zshrc +++ b/.zshrc @@ -51,6 +51,10 @@ setopt null_glob # ZSH_AUTOSUGGEST_USE_ASYNC=1 # ZSH_AUTOSUGGEST_STRATEGY=(history completion) +# FIXME: Why does this work? Otherwise zshrc gets the wrong prompt length for unicode chars. +export LC_ALL=en_US.UTF-8 +export LC_ALL=en_SE.UTF-8 + export PATH=$HOME/bin:$PATH redraw-prompt() {