Skip to content

Instantly share code, notes, and snippets.

@shaykalyan
Last active April 5, 2024 00:51
Show Gist options
  • Star 47 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save shaykalyan/cd276a7d812dd393caf1 to your computer and use it in GitHub Desktop.
Save shaykalyan/cd276a7d812dd393caf1 to your computer and use it in GitHub Desktop.
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?

@laurentjacob
Copy link

@richardqcarvalho
I just rebooted and it was working properly thereafter

@heijmerikx
Copy link

I just had to change the terminal preferences to use the chosen font to make it work for Pop!_OS

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