diff options
author | Alan Pearce | 2020-11-19 20:48:57 +0100 |
---|---|---|
committer | Alan Pearce | 2020-11-19 20:48:57 +0100 |
commit | c5b94cc55f2fc7916ca59017ce380786dd9fd450 (patch) | |
tree | 63220e4aad8eea6c36e624be3cda1685951e4185 | |
parent | 4d73047c68bd178f34d4310dfa50379e08f67668 (diff) | |
download | nixfiles-c5b94cc55f2fc7916ca59017ce380786dd9fd450.tar.lz nixfiles-c5b94cc55f2fc7916ca59017ce380786dd9fd450.tar.zst nixfiles-c5b94cc55f2fc7916ca59017ce380786dd9fd450.zip |
darwin: fix terminal display of Unicode combining chars
-rw-r--r-- | system/settings/darwin.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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; [ |