Upgrade your Terminal to 'Zsh for Humans' by @romkatv
September 29, 2021•170 words
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:
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:
- iTerm, Prefs, Profiles (select your profile), Keys, then…
- Right/Left option key: Esc+
- iTerm, Prefs, Profiles (select your profile), Keys, then…
- Kitty:
- In the config file:
macos_option_as_alt yes
- In the config file:
Now you can enter a command like history and before hitting Enter, press Alt-H to show help for that command.
Social Photo by Debby Hudson on Unsplash