ZSH
ZSH 설치
brew install zsh
sudo apt-get install zsh
chsh -s $(which zsh)
Oh-My-Zsh
Oh-My-Zsh 설치
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
powerlevel10k Theme
powerlevel10k 설치
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
p10k font 설치
MesloLGS NF
powerlevel10k 명령어
p10k configure
Etc..
function kube-toggle() {
if (( ${+POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND} )); then
unset POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND
else
POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito'
fi
p10k reload
if zle; then
zle push-input
zle accept-line
fi
}
Plugin
Plugin 설치
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
plugin 적용
vi ~/.zshrc
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
source ~/.zshrc
Tmux
Tmux 설치
brew install tmux
sudo apt-get install tmux
Tmux 명령어
tmux
(ctrl + b) 이후 %
(ctrl + b) 이후 "
(ctrl + b) 이후 (option + 방향키)
(ctrl + b) 이후 (alt + 방향키)
exit
(ctrl + b) 이후 d
히히