sudo aptitude install zsh
whereis zsh # this usually returns /usr/bin/zsh
sudo usermod -s /usr/bin/zsh $(whoami)
- (2) Populate your .zshrc with configuration recommended
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
plugins=( [plugins...] zsh-syntax-highlighting)
source <(kubectl completion zsh)
git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab
- ref https://github.com/spaceship-prompt/spaceship-prompt#oh-my-zsh
- options https://github.com/spaceship-prompt/spaceship-prompt/blob/master/docs/options.md
- example preset config: https://medium.com/@goangle/my-awesome-zsh-weapon-2745cd34735d
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
Set ZSH_THEME="spaceship"
in your .zshrc
kubectl config rename-context kirilllapshin-saas-dev.k8s.congenica.net saas-dev
- emoji db ref: https://emojidb.org/ for suffixes (already used in
.zshenv
) - xterm 256 colors ref: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg