DEV Community

Cover image for Pro Terminal for Pro Developer OhMyZsh
Fady Mondy
Fady Mondy

Posted on

Pro Terminal for Pro Developer OhMyZsh

as we like to make everything more easy for our community, in this article we will explain how you can get your terminal to be like this one.

Install OhMyZsh

we start by installing zsh and ohMyZsh packages to add their features to our terminal

sudo apt-get -y install git curl wget
sudo apt-get -y install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

now zsh and OhMyZsh are installed successfully, we will add some plugins to make it easier to use the terminal.

Install OhMyZsh Plugins

we will add 2 plugins syntax-highlighting and zsh-autosuggestions These 2 plugins make the code and command on the terminal highlighted and the code you right will be saved to your terminal it will auto-complete it for you

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
echo "source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingzsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Enter fullscreen mode Exit fullscreen mode

now you need to allow this plugin on the OhMyZsh config

sudo nano ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

search about plugins and add this

plugins=( 
    git
    zsh-syntax-highlighting
    zsh-autosuggestions
)
Enter fullscreen mode Exit fullscreen mode

Install Power Fonts

to make OhMyZsh work with icons you need to install this font

sudo apt-get install fonts-powerline
Enter fullscreen mode Exit fullscreen mode

and you can download it from here

Install PowerLevel10k Theme

now it's time to make your terminal look pro just install powerlevel10k theme

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Enter fullscreen mode Exit fullscreen mode

now change the main theme on the OhMyZsh config

sudo nano ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

Now, searching for the theme can change it

ZSH_THEME="powerlevel10k/powerlevel10k"
Enter fullscreen mode Exit fullscreen mode

now close your terminal and open it again to restart zsh and after that start your config

p10k configure
Enter fullscreen mode Exit fullscreen mode

after config your theme you will see the new theme.

Top comments (2)

Collapse
 
robbyrussell profile image
Robby Russell 🐘🚂

@3x1io -- Thanks for sharing Oh My Zsh with people!

Quick note: sudo isn't needed for the two nano commands as you're editing a file that your current user owns. Whereas the apt-get commands do require root privileges to install those packages on your operating system.

Collapse
 
3x1io profile image
Fady Mondy • Edited

maybe in some cases
thanks for your note