ellyheetov / troubleshooting

공부 과정 중 발생하는 모든 문제들을 Issues에 기록한다.
0 stars 0 forks source link

[Oh My Zsh] 컴퓨터 이름 삭제 #16

Closed ellyheetov closed 3 years ago

ellyheetov commented 3 years ago
  1. vi ~/.zshrc를 입력해 zsh 설정파일을 열기

  2. 이후 아래 내용을 .zshrc 맨 아래 부분에 추가하기

    prompt_context() {
    if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
    prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
    fi
    }
  3. 추가한 후 적용하기

    source ~/.zshrc
ellyheetov commented 3 years ago
Screen Shot 2021-01-07 at 11 52 19 AM

드디어 예쁜 터미널 완성!!!