March 13, 2023 · Don't Forget mac

Enforcing en_US.UTF-8 locale when connecting via SSH to MacOS from Windows

My absolute favorite combination for when coding in nvim/tmux is to combine WezTerm with agave Nerd Font. Recently I got a new mac, and while setting it up, noticed that whenever I'd ssh into it, my fonts would all be broken.

The issue was that my mac was not correctly setting up locale on new ssh connections. The fix? On my .zshrc file I added

export LC_ALL=en_US.UTF-8  
export LANG=en_US.UTF-8