Here I want to touch on some of the configuration I like to do to my terminal environment. I use oh-my-zsh and oh-my-posh to get the most out of a cli's quality of life. ## Setting up ZSH and Oh-my-ZHS with autocomplete plugins Installed oh-my-zsh from here https://github.com/ohmyzsh/ohmyzsh ```bash sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" ``` And added the following plugins. ```bash sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete ``` Then add the following plugins to your `.zshrc` ```bash plugins=( git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete ) ``` ![[Pasted image 20250403150138.png]] ## Configuring and Customizing Oh-My-Posh Installation and setup instructions can be found here https://ohmyposh.dev/docs/installation/linux ```bash curl -s https://ohmyposh.dev/install.sh | bash -s ``` I stole and modified the kali theme to remain true to my script kiddie roots. ```bash mkdir .oh-my-zsh/prompt cp .cache/oh-my-posh/themes/kali.omp.json .oh-my-zsh/prompt/sadako.omp.json ``` Here I removed the goofy skull emoji and changed the colors. and then add this to your `.zshrc` ```bash eval "$(oh-my-posh init zsh --config /home/eli/.oh-my-zsh/prompt/sadako.omp.json)" ``` ## MOTD I also installed this cute bonsai script https://gitlab.com/jallbrit/bonsai.sh Added it to my `.zshrc` with: ``` bash git clone https://gitlab.com/jallbrit/bonsai.sh ~/bin/bonsai.sh chmod +x ~/bin/bonsai.sh/bonsai.sh ln -s ~/bin/bonsai.sh/bonsai.sh ~/.local/bin/bonsai ``` and added ```bash bonsai -g 60,60 -m "$(date)" ``` to my `.zshrc`

Other Articles In This Series