Oh My Zsh
linux ubuntu arch cachyos debianI have for as long as I can remember been using ZSH as shell for my Linux installations. I haven't found anything that I like more till this date. I have never come across a Linux or BSD distribution where Oh My Zsh didn't work.
Prerequisites
- git
- zsh
- curl or wget, my example is with curl, as that's my preferred
You can install the dependencies with you package manager
sudo pacman -S git zsh curl # arch based distros
sudo apt install git zsh curl # debian based distros
** Set you default shell**
chsh -s /bin/zsh
You might how to logout and back in to have changes take effect. Something restarting the shell is enough.
** Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Follow the instructions from script.
Now you are ready to take benefits of Oh My Zsh.
Additional setup
I have some additional steps that I take. I have two plugins for Oh My Zsh that I really love. One being Zsh-z and the other zsh-autosuggestions
Zsh-Z makes navigating between directories an ease. Zsh-autosuggestions make command suggestions based on you shell history, it same quite some keystrokes for me.
They are luckily quite easy to install simply use git.
git clone https://github.com/agkozak/zsh-z ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-z
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
You would now need to edit your ~/.zshrc find the plugins section and add the to plugins
plugins=(
# other plugins...
zsh-z
zsh-autosuggestions
)
Starship.rs
Lastly I really love the look and feel of the Starship.rs-prompt which will shine up your shell a bit.
To install it
curl -sS https://starship.rs/install.sh | sh
follow the instructions on screen.
Now add the following to your `~/.zshrc'
eval "$(starship init zsh)"
You can fetch my starship.rs configuration here https://github.com/tomasnorre/dotfiles/ especially the two files
- https://github.com/tomasnorre/dotfiles/blob/main/files/.zsh/starship.zsh
- https://github.com/tomasnorre/dotfiles/blob/main/files/.config/starship.toml
Now you have a easy to setup and easier to use Linux shell.
Hire Me?
I work as a freelancer in my company 7th Green, specializing in PHP development and DevOps. My main strengths include TYPO3, PHP in general, DevOps and Automation.
Please reach out, I will be happy to talk about your project.