Last active
April 7, 2021 08:33
-
-
Save mavogel/463187cc676ad7734654505b8c09531f to your computer and use it in GitHub Desktop.
ohmyzsh on Ubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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