Windows Subsystem for Linux (WSL) & Ubuntu
Zsh
- ohmyzsh
- zsh-autosuggestions
- zsh-syntax-highlighting
- romkatv/powerlevel10k: A Zsh theme
- powerline/fonts: Patched fonts for Powerline users.
- ryanoasis/nerd-fonts: Iconic font aggregator, collection, & patcher.
-
Zsh
$ sudo apt update && sudo apt upgrade -y $ sudo apt install zsh -y $ zsh --version $ sudo chsh -s $(which zsh) $(whoami) $ touch .zshrc $ chmod 644 .zshrc $ exit
-
Oh My Zsh
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
-
Powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k -
zsh-autosuggestions & zsh-syntax-highlighting
$ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
-
~/.zshrc수정ZSH_THEME="powerlevel10k/powerlevel10k"plugins=(git zsh-autosuggestions zsh-syntax-highlighting)$ sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="powerlevel10k\/powerlevel10k"/g' ~/.zshrc $ sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g' ~/.zshrc $ exit
AWS CLI
$ sudo apt install unzip $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" $ unzip awscliv2.zip $ sudo ./aws/install $ aws --version $ echo -e "\n# AWS CLI Command completion" >>~/.zshrc $ echo "autoload bashcompinit && bashcompinit" >>~/.zshrc $ echo "autoload -Uz compinit && compinit" >>~/.zshrc $ echo "complete -C '/usr/local/bin/aws_completer' aws" >>~/.zshrc $ source ~/.zshrc $ aws configure AWS Access Key ID [None]: AWS Secret Access Key [None]: Default region name [None]: ap-northeast-2 Default output format [None]: json $ aws configure list
kubectl
$ curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/kubectl $ chmod +x ./kubectl $ mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin $ kubectl version --short --client $ echo -e '\nexport PATH=$PATH:$HOME/bin' >> ~/.zshrc $ echo -e '\n# Kubernetes auto completion' >>~/.zshrc $ echo 'source <(kubectl completion zsh)' >>~/.zshrc $ echo 'alias k=kubectl' >>~/.zshrc $ echo 'complete -F __start_kubectl k' >>~/.zshrc $ source ~/.zshrc $ aws sts get-caller-identity $ aws eks update-kubeconfig --name <cluster-name> --alias <context-name> $ kubectl get svc
Helm
$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 $ chmod 700 get_helm.sh $ ./get_helm.sh $ echo -e '\n# Helm auto completion' >>~/.zshrc $ echo 'source <(helm completion zsh)' >>~/.zshrc $ source ~/.zshrc