Skip to content

Instantly share code, notes, and snippets.

@mavogel
Last active April 7, 2021 08:33
Show Gist options
  • Save mavogel/463187cc676ad7734654505b8c09531f to your computer and use it in GitHub Desktop.
Save mavogel/463187cc676ad7734654505b8c09531f to your computer and use it in GitHub Desktop.
ohmyzsh on Ubuntu 16.04
# install zshrc
apt-get update
apt-get -y install curl wget zsh vim jq
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# check locales
locale -a
vim ~/.zshrc
# adapt plugins
ZSH_THEME="agnoster"
plugins=(
    git
    kube-ps1
    kubectl
)
export LC_ALL=C.UTF-8 # the correct locales
export LANG=C.UTF-8
KUBE_PS1_NS_COLOR=blue
RPROMPT='$(kube_ps1)'
# install fonts
# https://fmacedoo.medium.com/oh-my-zsh-with-powerline-fonts-pretty-simple-as-you-deserve-fbe7f6d23723
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
# use fonts (iterm2 (mac) + vscode)
# Meslo LG S for Powerline
iTerm -> preferences -> profiles -> text -> regular font
vscode -> settings -> Terminal -> Integrated Font Family -> Meslo LG S for Powerline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment