Zsh installation on ubuntu/mac-osx with agnoster theme
sudo apt-get update && sudo apt-get install zsh
brew install zsh
Note: Git should be pre-installed for following commands.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s /bin/zsh
# OR
sudo chsh -s $(which zsh) $(whoami) # useful when logged in with a user having no password
ZSH_THEME="agnoster"
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
sudo mv PowerlineSymbols.otf /usr/share/fonts/
sudo fc-cache -vf
sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/
- Download powerline font from here
- Unzip it. Go to fonts-master/UbuntuMono/ and install each of the four TTFs: simply double-click and let Font Book install them for you.
- Open Terminal, then navigate to Terminal Preferences > Profiles > Font and click the Change button.
- Select Ubuntu Mono derivative Powerline and set the font size to your liking.
source ~/.zshrc
If above command doesn't work then logout and login again.
If you are using Ubuntu then add following settings to vscode
{
"terminal.integrated.fontFamily": "'Ubuntu Mono', 'PowerlineSymbols'", // "'Ubuntu Mono derivative Powerline'" for mac osx
"terminal.integrated.defaultProfile.osx": "zsh",
"terminal.integrated.fontSize": 16
}
You can refer to: oh-my-fish/theme-bobthefish#125