자유게시판
장비/환경

터미널 꾸미기

중년개발자
중년개발자

@loxo

약 1개월 전

36

터미널 꾸미기

zsh 설치

bash
sudo apt install zsh

oh-my-zsh 설치

bash
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

폰트 설치 (터미널 구동 OS에 설치)

테마/플러그인 설치

bash
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

.zshrc 편집

  • ZSH_THEME, plugins 찾아서 변경
bash
# 수정 ZSH_THEME="powerlevel10k/powerlevel10k" plugins=(git zsh-autosuggestions zsh-syntax-highlighting) # 맨아래 source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#757575'

테마 설정/재설정(p10k)

bash
source ~/.zshrc # 테마 재설정 > p10k configure

터미널 명령줄에서 vi 키 바인딩

bash
vi ~/.zshrc set -o vi
#터미널 꾸미기#zsh#oh-my-zsh#Linux#Powerlevel10k

댓글 0

Ctrl + Enter를 눌러 등록할 수 있습니다
※ AI 다듬기는 내용을 정제하는 보조 기능이며, 최종 내용은 사용자가 확인해야 합니다.