Skip to content

Zsh

Zsh is a shell that reads commands and offers shortcuts such as tab completion as you type.

Visit Zsh

Where does Zsh fit when you open a terminal?

The terminal displays your session. Zsh is the shell that reads what you type, runs commands and can suggest completions when configured. In a tab you know is local and running Zsh, pwd prints the working folder. The ZSH_VERSION variable holds the version of the running shell.

Can you use a Bash tutorial in Zsh?

A simple command such as pwd is available in both shells. A script can depend on features or settings specific to Bash or Zsh. If the tutorial asks for Bash, use a known Bash session and check the version the project expects. A terminal window’s appearance cannot tell you which shell interprets a script.

What should you keep when you move to another computer?

Zsh is freely available. Check the installed version before copying settings. An interactive session can read .zshrc from the directory named by ZDOTDIR, or your home folder when ZDOTDIR is unset. Keep the settings you need and a list of separately installed plugins and commands. Read startup files before copying them and leave out secrets and computer-specific paths.

How would you spot the wrong project folder?

On paper, label two tabs Zsh. Write sample-shop below one and sample-notes below the other. Decide which folder you expected pwd to report. If the reported path points to sample-notes, stop and choose the right tab before following the project instructions. You can do the entire check on paper when the real session or shell is unclear.