sudo apt install zsh
sudo apt install git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sudo mkdir /usr/share/fonts/truetype/MesloLGS_NF
sudo wget -O /usr/share/fonts/truetype/MesloLGS_NF/MesloLGS%20NF%20Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
sudo wget -O /usr/share/fonts/truetype/MesloLGS_NF/MesloLGS%20NF%20Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
sudo wget -O /usr/share/fonts/truetype/MesloLGS_NF/MesloLGS%20NF%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
sudo wget -O /usr/share/fonts/truetype/MesloLGS_NF/MesloLGS%20NF%20Bold%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
sudo fc-cache -f -v
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
exec zsh
도형이 정상적으로 보이면 y
# Mint Linux 기준
만약 도형이 정상적으로 보이지 않으면 터미널의 기본 폰트를 바꿔본다.
터미널 - 편집 - 기본 설정 - [프로파일 중 사용중인 프로파일] - 텍스트 - 사용자 지정 글꼴 체크 - MesloLGS NF
Prompt Style : Rainbow
Character Set : Unicode
Show current time : 24-hour format
Prompt Separators : Angled
Prompt Heads : Sharp
Prompt Tails : Round
Prompt Height : One line
Prompt Spacing : Compact
Icons : Many icons
Prompt Flow : Concise
Enable Transient Prompt : no
Instant Prompt Mode : Verbose
Apply changes to ~/.zshrc : Yes
만약 다시 설정하고 싶다면 아래 명령어를 실행하면 된다.
p10k configure