04. zsh (optional)
If we're going to be spending 100% of our time on this machine in the terminal, we may as well get a decent shell. The next few steps are optional, but I'm not using this default BASH shell anymore. I like the zsh/ohmyzsh setup much better so I'll install that now. You can either follow along or skip to Step 05
Install zsh with:
sudo apt install zsh
Check everything installed:
zsh --version
Set zsh as the default shell:
chsh -s $(which zsh)
Log out/in:
logout
Go through the setup: I pretty much just set everything to the default
Great, we've got zsh all set up and our terminal looks a little different, that's cool, but now let's add Oh My Zsh
Install by entering sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
Daaaaaaang look at that. Making improvements little by little...
I'm going to install a plugin for syntax highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
We can edit the ohmyzsh config by running
nano ~/.zshrc
I'm going to change the value of
ZSH_THEME
tocloud
. Because I've been using a modified version of that one for years and I'm just used to it. Feel free to play around with different themes if that's your thing.Where it says
plugins=(git)
I'm going to change it toplugins=(git sudo zsh-syntax-highlighting)
I'm also going to uncomment the line that says
DISABLE_UNTRACKED_FILES_DIRTY="true"
Save and exit nano:
Ctrl + O
,Enter
,Ctrl + X
Might not need to, but I'm going to reboot now.
reboot
Last updated