- You need to install Zsh first:
sudo apt install zsh
- if you get an error (dpkg was interrupted) you must run this command:
sudo dpkg --configure -a
- if you get an error (dpkg was interrupted) you must run this command:
- Verify installation:
zsh --version
- You need to make it your default shell:
chsh -s $(which zsh)
- You need to log out and login:
- Test that it worked
echo $SHELL
If your result is /bin/zsh or similar then you're good to go
- Do another test
$SHELL --version
Expected result is zsh 5.4.2
- Test that it worked
- Installing oh-my-zsh:
- You can use curl
- via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- You can use curl
- Download the .zshrc file to your HOME directory
-
If it's done change the USER part to yours:
export ZSH=/home/<USER>/.oh-my-zsh
It will look something like this:
export ZSH=/home/theuserijusttyped/.oh-my-zsh
-
- Plugins:
- You can use the .zshrc file I uploaded to github
it uses:
- git
- adds a lot of aliases, see here
- sudo
- if you forgot to write
sudo
before some command you can easily put it by pressing the ESC key twice
- if you forgot to write
- docker
- gives autocomplete support
- docker-compose
- gives autocomplete support
- history
- if you type h (history) oh-my-zsh will show you the command-history
- history-substring-search
- if you start typing in any previous command (part of it) and hit UP key then the similar one will be shown
- git
- You can use the .zshrc file I uploaded to github
it uses:
- no need to type
cd
to change directory- you can simply type in the correct folder name and press ENTER to... well... ENTER to the directory
- this is same for leaving a directory as well
- simply type in
..
instead ofcd ..
- simply type in
- typing
l
is like typing inls -a
tre
is a shorthand for tree with hidden files and color enabledreload
will reload your terminal window and you don't need to close and reopen after modifying your environment