sudo apt install -y zsh
Ubuntu
sudo dnf install -y zsh
Fedora/EL-based
sudo chsh -s /usr/bin/zsh
기본 쉘 변경
ZSH 설정을 관리하기 위한 프레임워크
**sh** -c "$(**curl** -fsSL <https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh>)"
zsh의 플러그인 매니저
`curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh`` 설치 후 .zshrc의 내용을 모두 지우고 아래 내용으로 대체
# .zshrc (use zplug)
source ~/.zplug/init.zsh
# Plugins
zplug "plugins/git", from:oh-my-zsh
zplug "lib/completion", from:oh-my-zsh
zplug 'lib/key-bindings', from:oh-my-zsh
zplug "lib/directories", from:oh-my-zsh
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-autosuggestions"
zplug 'romkatv/powerlevel10k', as:theme, depth:1
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Then, source plugins and add commands to $PATH
zplug load
wget <https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf>
wget <https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf>
wget <https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf>
wget <https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf>
mkdir ~/.local/share/fonts
mv MesloLGS*.ttf ~/.local/share/fonts/
fc-cache -f -v