Zsh is a Unix shell based on the Bourne shell, like bash.
Use homebrew to install Zsh:
$ brew install zsh
To set it as your default shell:
$ sudo sh -c "echo $(which zsh) >> /etc/shells" && chsh -s $(which zsh)
These shortcuts work in Bash as well.
|Ctrl + A / Ctrl + E||Go to start/end of line|
|Ctrl + W||Delete previous word|
|Ctrl + U / Ctrl + K||Remove everything from cursor to beginning/end of the line|
|Ctrl + X + E||Open a temporary file in
Oh My Zsh
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration.
To install, use this:
$ curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
Plugins are installed using Oh My Zsh and the
z: "Zsh-z is a command line tool that allows you to jump quickly to directories that you have visited frequently in the past, or recently -- but most often a combination of the two (a concept known as "frecency"). It works by keeping track of when you go to directories and how much time you spend in them."
- Git shortcuts:
gitis aliased to
gand many of the most used commands are aliased as well, like
git add .and
git commit -m, etc. You can find a list of the shortcuts in the oh-my-zsh repo.
Your profile, which includes your different environment variables, can be found at
Last modified: 202209211828