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 Dand 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
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/band have that expand to
/usr/local/binand cd into that directory, it also has spelling correction and approximate completion, meaning if you accidentally type
Docunentsit will correct to
autopep8which automatically formats python code to pep8 standard,
colored-man-pageswhich 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
sudoby 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 zshcommand 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)
zsh-autocompletethat accesses the history dotfile. I'll be leaving this the default size of 1000 and in the default installation location, the home dir.
.zshrcconfig dotfile with our favoured text editor (vim), find where it says
plugins=, and begin adding them, like so:
pwdstyle file path display and the timer that shows how long it took for a program to execute.