Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install powerline fonts

https://github.com/powerline/fonts

Download agnoster theme

https://github.com/mbadolato/iTerm2-Color-Schemes/zipball/master

Change settings for vscode

"terminal.integrated.fontFamily": "Source Code Pro for Powerline",
"terminal.integrated.shell.osx": "/bin/zsh"

// @Drakal added
// I'd also consider adjusting line height if icons are cut off on top too or things look super cramped.
// "terminal.integrated.lineHeight": 1.3

// @ChongTang, @ramonsantos added
// @gaochundong said it works like a charm.
// "terminal.integrated.fontFamily": "Hack Nerd Font"

// @dalekurt added (belows which gives me the the fonts for the terminal and the icons from Nerd Font.)
// "terminal.integrated.fontFamily": "'Source Code Pro for Powerline', 'Hack Nerd Font'

// @nickhingston , @olivebay added for powerlevel10k
// I use powerline10k - which uses https://github.com/romkatv/powerlevel10k/#recommended-meslo-nerd-font-patched-for-powerlevel10k
// so this worked for me:
// "terminal.integrated.fontFamily": "MesloLGS NF" 

// @kaustuv added
// after the changing the font, still had some issues with the glyph spacing in the integrated terminal - fixed it with 
// @ar2zee : fixed the problem for me.
// "terminal.integrated.rendererType": "canvas"
  1. Change Theme for Mac OSX Terminal to agnoster
  2. Add DEFAULT_USER=whoami in ~/.zshrc
  3. Change Theme to agnoster in ~/.zshrc
@ChongTang

This comment has been minimized.

Copy link

ChongTang commented Apr 10, 2019

"terminal.integrated.fontFamily": "Hack Nerd Font" works like a charm.

@vishwa-amit

This comment has been minimized.

Copy link

vishwa-amit commented May 3, 2019

Awesome, Worked for me

@rediphone

This comment has been minimized.

Copy link

rediphone commented Jun 11, 2019

<3

@rmcsharry

This comment has been minimized.

Copy link

rmcsharry commented Jun 29, 2019

YOU sir, are a hero for saving this 🥇

@ramonsantos

This comment has been minimized.

Copy link

ramonsantos commented Jul 9, 2019

"terminal.integrated.fontFamily": "Hack Nerd Font"

This solved my problem. Thanks!

@dalekurt

This comment has been minimized.

Copy link

dalekurt commented Jul 20, 2019

I'm using this "terminal.integrated.fontFamily": "'Source Code Pro for Powerline', 'Hack Nerd Font'", which gives me the the fonts for the terminal and the icons from Nerd Font.

@lhdgriver

This comment has been minimized.

Copy link

lhdgriver commented Aug 14, 2019

Awesome, Worked for me

@Mightynumnums

This comment has been minimized.

Copy link

Mightynumnums commented Aug 14, 2019

Thank you! Worked like a charm!

@kaustuv

This comment has been minimized.

Copy link

kaustuv commented Aug 17, 2019

after the changing the font, still had some issues with the glyph spacing in the integrated terminal - fixed it with "terminal.integrated.rendererType": "canvas"

@artixzenevich

This comment has been minimized.

Copy link

artixzenevich commented Sep 19, 2019

Thanks!!!

@kisakyegordon

This comment has been minimized.

Copy link

kisakyegordon commented Oct 19, 2019

👌🏾

@gaochundong

This comment has been minimized.

Copy link

gaochundong commented Oct 23, 2019

"terminal.integrated.fontFamily": "Hack Nerd Font" works like a charm.

@darlingof02

This comment has been minimized.

Copy link

darlingof02 commented Nov 3, 2019

Thanks a lot!!!

@olivebay

This comment has been minimized.

Copy link

olivebay commented Nov 9, 2019

I am using Meslo LG S for Powerline

@ar2zee

This comment has been minimized.

Copy link

ar2zee commented Nov 20, 2019

"terminal.integrated.rendererType": "canvas" fixed the problem for me.
Thank you.

@Drakal

This comment has been minimized.

Copy link

Drakal commented Dec 6, 2019

I'd also consider adjusting line height if icons are cut off on top too or things look super cramped.
"terminal.integrated.lineHeight": 1.3

@nickhingston

This comment has been minimized.

Copy link

nickhingston commented Jan 13, 2020

I use powerline10k - which uses https://github.com/romkatv/powerlevel10k/#recommended-meslo-nerd-font-patched-for-powerlevel10k
so this worked for me:

"terminal.integrated.fontFamily": "MesloLGS NF" 
@aendre

This comment has been minimized.

Copy link

aendre commented Jan 31, 2020

Thanks! The font is finally working well!

@smlombardi

This comment has been minimized.

Copy link

smlombardi commented Feb 21, 2020

The new JetBrains Mono also works: https://www.jetbrains.com/lp/mono/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.