From c5b94cc55f2fc7916ca59017ce380786dd9fd450 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 19 Nov 2020 20:48:57 +0100 Subject: darwin: fix terminal display of Unicode combining chars --- system/settings/darwin.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/settings/darwin.nix b/system/settings/darwin.nix index 8fe08a4e..996e5ca9 100644 --- a/system/settings/darwin.nix +++ b/system/settings/darwin.nix @@ -11,6 +11,11 @@ enableCompletion = false; # Causes >2s startup time, overlaps home-manager config enableBashCompletion = true; loginShellInit = builtins.readFile "/System/Library/Templates/Data/private/etc/zprofile"; + interactiveShellInit = '' + if [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then + setopt COMBINING_CHARS + fi + ''; }; environment.systemPackages = with pkgs; [ -- cgit 1.4.1