sh
), and the Bourne Again shell (bash
). This article will give an introduction to the shell, explain the benefits of it, and then walkthrough the installation and configuration procedure.cd
), but Zsh's tab completion gives a navigable menu of options to choose options from. For example, a user could type cd D
and hit tab. In Bash you will get no response until they type enough text for the shell to be able to determine whether they meant Desktop
or Documents
, whereas in Zsh both options will appear below the input line and the user can choose which one they want. This applies to all files, so you can type a string of letters, hit tab, and receive a menu full of items ranging from directories to programs to miscellaneous files.cd
, in Zsh, you don't even need to type it! You can, of course, if you want, but simply typing the name of a directory (including inbuilt directory aliases like ~
for home and /
for root) will allow the user to navigate there. Zsh also has recursive path expansion, so a user can type /u/lo/b
and have that expand to /usr/local/bin
and cd into that directory, it also has spelling correction and approximate completion, meaning if you accidentally type Docunents
it will correct to Documents
for you.autopep8
which automatically formats python code to pep8 standard, colored-man-pages
which does what it says on the tin, git
, which provides an array of aliases for git commands, and sudo
, which prefixes current or previous commands with sudo
by pressing escape twice. In addition there is a series of plugins that offer support for popular scripting languages, such as python and golang.$(which zsh)
stores the output of the which zsh
command in a variable, on which the chsh -s command is run, immediately followed by a semicolon, the symbol for separated commands in most languages (including bash script), and then reboot
. Interesting stuff! (at least to me, a nerd lol).zshrc
.zsh-autocomplete
that accesses the history dotfile. I'll be leaving this the default size of 1000 and in the default installation location, the home dir..zshrc
config dotfile with our favoured text editor (vim), find where it says plugins=
, and begin adding them, like so:pwd
style file path display and the timer that shows how long it took for a program to execute.