Goal: serve up an interesting EVA theme, and teach you to make your own. Thanks to the original EVA theme.
- Install ZSH and Oh My Zsh
- Access your
~/.zshrc
file and find theTHEME=""
line
-
Go to
~/.oh-my-zsh/themes
and addcustom.zsh-theme
. -
Open
~/.zshrc
and addTHEME="custom"
. -
To customise, go to
~/.oh-my-zsh/themes/custom.zsh-theme
.
- Follow the instructions inside the file, such as:
PROMPT="%{$fg_bold[blue]%}%n: "
In this case, it will change the prompt to the user's name in blue.
PROMPT=""
dictates the leftmost prompt
RPROMPT=""
dictates a prompt on the right
%n
= user
%~
= working directory
%m
= computer
#
= leave a comment
%{$fg_bold[blue]%}
— that is, %{
opens the statements, then fg_bold
selects the formatting (in this case, bold), and [blue]
selects the colour. So you have: "Insert bold text of colour blue".
The theme is entitled "custom" because the goal is for you to create your own. While the original has its own colours and elements, you should be able to make your own and create something preposterous. That's why it's called custom.zsh-theme
.
You may need to use chmod +x ~/.zshrc
to be able to access it.
Also, make sure to select a text editor you like to open the files, e.g. nano ~/.oh-my-zsh/themes/custom.zsh-theme
This was built from the EVA theme, and modified.
The right side of the prompt, EVA \ 33.3 \ ペンペ
, means EVA \ 33.3 \ Pen-Pen
(in Katakana). That is:
Add an EVA reference by adding an alias like CONFIG_EVA="nano ~/.oh-my-zsh/themes/custom.zsh-theme"
to ~/.zshrc
so you can run CONFIG_EVA
to tweak it, as if you were Mistato, shouting orders at people before going back to Pen-Pen and boozin'.
As you'll note, the line is hilariously long. The idea is to teach you how it all works so you can learn for yourself. You can even split things up onto separate lines to make something gloriously colourful.