Skip to content

caiocutrim/cp-oh-my-zsh-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CP(Agnoster based) for oh-my-zsh

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

Requirements

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.

Installing

After installing oh-my-zsh

  1. Download the theme here

  2. Put the file cp.zsh-theme in $ZSH_CUSTOM/themes/

  3. You can use the makefile to automatic install the theme on your .oh-my-zsh directory installation

  4. 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.

  5. 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://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20for%20Powerline%20Nerd%20Font%20Complete.otf

Options

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.

Some screenshots

screenshot1 screenshot2

This theme is highly inspired by the following themes:

About

Zsh theme based on agnosterzak-zsh-theme with cool colors and fontawesome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published