miniconda zsh 설치

초코소금빵·2025년 6월 12일

개발

목록 보기
7/7

1. zsh 설치

sudo apt install zsh                 

2. plugin 설치

# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

3. 설치한 거 설정파일에 추가

#zsh 설정파일 열기
vi ~/.zshrc

4. 값 추가

영어 A 누르면 Insertmode가 되는데 값 추가하면 됨.

그리고 맨 처음에 zsh 시작하면 "~" 이런 안예쁘게 나오는데

ZSH_THEME="agnoster" 

테마를 바꾸면 예쁘게 나옴.

plugins=(
git
sudo
colored-man-pages
zsh-syntax-highlighting
zsh-autosuggestions
fzf
)

prompt_context() {
    if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
      prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
    fi
}

이렇게 설정하고 나서 설치는 했는데 안먹었음.

확인해보니, 해당 plugins 밑에 plugins = (git) 으로 덮여씌워져서 그런 것이였음.

그래서 추가할 때, 잘 보고 하길.

5. 설정 파일 적용

#zsh 설정파일 적용
source ~/.zshrc
profile
피할 수 없으면 즐기자

0개의 댓글