내가 어디서 무얼 하고있는지 헷갈릴 때 사용할만한 팁이 있다.
https://github.com/romkatv/powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
vi ~/.zshrc
아래 그림과같이 테마를 변경해준다.
exec zsh #설정 적용
p10k configure #폰트 세부설정 시작
y
y #Does this look like a diamond (rotated square)?
n #Does this look like a lock?
n #Does this look like a lock?
3 #Prompt Style
unicode #Character Set
2 #Show current time?
2 #Prompt Separators
1 #Prompt Heads
1 #Prompt Tails
2 #Prompt Height
2 #Prompt Connection
4 #Prompt Frame
2 #Connection & Frame Color
1 #Prompt Spacing
2 #Prompt Flow
y #Enable Transient Prompt?
1 #Instant Prompt Mode
y #Apply changes to ~/.zshrc?
https://github.com/ahmetb/kubectx
개인이 만든 오픈소스이다.
wget https://github.com/ahmetb/kubectx/releases/download/v0.9.4/kubectx
wget https://github.com/ahmetb/kubectx/releases/download/v0.9.4/kubens
sudo install kubectx /usr/local/bin
sudo install kubens /usr/local/bin
kubectx
활용
kubens
활용
namespace를 전환은 이렇게 쉽게 할 수 있다.
vi ~/.zshrc
### 아래와같이 plugins 부분을 편집해주고 저장
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
zsh-autosuggestions
zsh-completions
docker
kubectl
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
source ~/.zshrc #변경사항을 다시 적용