$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ brew install zsh
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
테마를 고른다. ex) agnoster
$ vi ~/.zshrc
// ZSH_THEME="agnoster"
$ source ~/.zshrc
$ vi ~/.zshrc
아래 코드를 맨 마지막 줄에 붙여넣기
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
적용
$ source ~/.zshrc
활용 가능한 명령어에 highlighting 을 해주는 기능
$ brew install zsh-syntax-highlighting
# .zshrc 에 입력
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
$ brew install zsh-autosuggestions
# .zshrc 에 입력
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh