Upgrade your Terminal to 'Zsh for Humans' by @romkatv

Upgrade your Terminal to 'Zsh for Humans' by @romkatv

And spice it up with powerlevel10k!

Roman Perepelitsa has coded a fantastic, featureful zsh configuration that works right out of the box. "Zsh for Humans" (aka "z4h") and its companion prompt "Powerlevel10k" are easy to install, and come configured with the most useful features you might need in an interactive prompt. You can see what my configuration of the prompt looks like here:

image.png

I love the ssh wrapper feature, which lets you auto-push your zsh environment up to a remote server. You use the wrapper like this:

% z4h ssh myuser@thehost.com

My daily driver is macOS, so I needed to tweak some settings in my terminals to get the key bindings to work as expected:

  • iTerm2:
    1. iTerm, Prefs, Profiles (select your profile), Keys, then…
    2. Right/Left option key: Esc+
  • Kitty:
    1. In the config file: macos_option_as_alt yes

Now you can enter a command like history and before hitting Enter, press Alt-H to show help for that command.


Photo by Debby Hudson on Unsplash