This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!
Zsh¶
Prerequisite(s)
Reference(s)
- https://wiki.gentoo.org/wiki/Zsh
- https://wiki.gentoo.org/wiki/Zsh/Guide
- https://wiki.archlinux.org/index.php/Zsh
- https://github.com/koalaman/shellcheck
- https://wiki.gentoo.org/wiki/Shell
- https://wiki.archlinux.org/index.php/Command-line_shell
- https://wiki.archlinux.org/index.php/Command-line_shell#Changing_your_default_shell
- https://unix.stackexchange.com/questions/71253/what-should-shouldnt-go-in-zshenv-zshrc-zlogin-zprofile-zlogout
Table of contents¶
Install¶
Define Zsh as the default shell for current user but don't configure it, let zim
(see later)
handle the configuration:
$ zsh
$ autoload -Uz zsh-newuser-install
$ zsh-newuser-install -f # init guide, do not configure anything: enter 'q' to quit immediatly
$ chsh -s /bin/zsh
Now exit Zsh and reboot:
Config¶
-
The Zsh config will mostly be handled by
zim
(see the last section of this guide). -
Specify the location of your command history:
Avoid dotfile madness¶
Make sure you stay in control of your home directory.
Prerequisite
See how to handle Zsh related dotfiles.
zim
¶
To start with a sane zsh
config and a good zsh
framework: see zim
If this cheat sheet has been useful to you, then please consider leaving a star here.