Last active
May 24, 2023 15:22
-
-
Save AliKhadivi/4e58df0a506d421e76cd3619e7b507e6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo apt update && sudo apt install -y zsh git curl wget vim fzf | |
sudo git clone https://github.com/ahmetb/kubectx /opt/kubectx | |
sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx | |
sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
curl -L https://gist.githubusercontent.com/AliKhadivi/7a37c2ded63aaae904960663982431b2/raw/ > ~/.oh-my-zsh/custom/themes/jalgo.zsh-theme | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
curl -L https://gist.githubusercontent.com/AliKhadivi/5a23c205e927a6c9e85d27c95f0123ed/raw >> ~/.vimrc | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
sed -i.bak \ | |
-e "s#ZSH_THEME=.*#ZSH_THEME=jalgo#g" \ | |
-e "s#plugins=(#plugins=(kube-ps1 kubectl #g" \ | |
"$(realpath ~/.zshrc)" | |
echo "export EDITOR='vim'" >> ~/.zshrc | |
echo "alias kns=kubens" >> ~/.zshrc | |
echo "alias kctx=kubectx" >> ~/.zshrc | |
echo "export KUBE_PS1_CTX_COLOR=green" >> ~/.zshrc | |
source ~/.zshrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment