Skip to content

Instantly share code, notes, and snippets.

@shaykalyan
Last active September 22, 2023 04:34
  • Star 44 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Oh My Zsh theme with Powerline font guide

Themed zsh Shell for iTerm/Guake Guide

Preview

What you need

Install

  • Edit the theme to include your user name
    • Find and replace <username> with your alias
  • Copy theme to Oh My Zsh's theme directory
    • cp xshay.zsh-theme ~/.oh-my-zsh/themes/
  • Install powerline fonts
    • Mac
      • Install like any other font
    • *nix
      • Copy Powerline fonts to your system fonts directory
        • sudo cp *.otf /usr/share/fonts/opentype
          • If the directory does not exist, create it
      • Refresh system font cache
        • sudo fc-cache -fv
  • Edit ~/.zshrc to use new xshay theme
  • Update font settings to use a Powerline font
    • iTerm
      • Preferences -> Profiles -> Text -> Change Font
  • Change your color palette
    • iTerm
      • Preferences -> Profiles -> Colors -> Load Presets
@cmdcolin
Copy link

If you are on ubuntu for example, I think you can just use sudo apt install fonts-powerline?

@RomanKALINACHENKO
Copy link

If you are on ubuntu for example, I think you can just use sudo apt install fonts-powerline?

Well played

@vegatronica
Copy link

If you are on ubuntu for example, I think you can just use sudo apt install fonts-powerline?

In Debian Kali work Ok!

@xjosk
Copy link

xjosk commented Oct 3, 2022

why it does look like this to me?? I have powerline fonts actually installed and they work perfectly fine for agnoster
image

@shawncamthom
Copy link

Hello @shaykalyan

What powerline are you using in the example above?

@richardqcarvalho
Copy link

If you are on ubuntu for example, I think you can just use sudo apt install fonts-powerline?

Once done, seems like system didn't recognize them cause I can't use. Is this right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment