A collection of themes for Oh My Zsh.
Oh My Zsh is framework for managing Z shell (Zsh). You can find their repository here.
I was playing around with customizing my terminal and creating some cool custom themes to pimp it up. This repository contains some of the shell scripts I wrote to generate the themes.
Features:
- Colored input to shell to easily differentiate it from the output of commands.
- Current git branch being checked out indicated at the end of the prompt.
- Option to keep/hide the virtual environment name.
- Prominent alert on command exiting with non-zero code.
Similar to color-input, but with a dashed line separating successive prompts.
Features: Same as for color-input.
Similar to matte-black-yellow, but with a dashed line separating successive prompts.
A theme with a CRT terminal feel.
Notes:
If you want to get the full retro experience,
include export LSCOLORS=cxcxcxcxcxcxcxcxcxcxcx
in your .zshrc file to make the output of ls
green as well.
You could also play around with the Preferences in Terminal or iTerm or the settings in any terminal of your choice to pimp the look up further.
If long prompts annoy you, this theme is for you! It does away with the long path after the username, and retains only the basename of the current working directory in the prompt.
You first need to have Z shell and Oh My Zsh installed.
You can install Zsh on MacOS using brew install zsh
or sudo apt install zsh
on Ubuntu.
You can install Oh My Zsh using the instructions in their repository (link above).
Make sure you install Powerline Fonts so that the fonts render correctly.
Once you download the theme of your choice from the themes directory,
move it to the custom/themes directory in your Oh My Zsh installation on your machine
(it's a hidden folder, so use ls -a
to find it, it's likely in ~/.oh-my-zsh).
All you need to do then is add the name of the theme (without the zsh-theme extension) to the .zshrc file at ~.
Run source ~/.zshrc
or open a new Terminal window, and the theme should be there.