2022이전/Linux
[꿀팁]on-my-zsh 설치 및 plugin 설정
바로퇴장
2020. 6. 18. 11:07
ubuntu 18.04에서 설치
sudo apt-get install zsh
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-completions/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/shells:zsh-users:zsh-completions.list"
wget -nv https://download.opensuse.org/repositories/shells:zsh-users:zsh-completions/xUbuntu_18.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update
sudo apt-get install zsh-completions
oh-my-zsh 설치
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
테마 변경하기(다른 곳 보시길) 전 rubbyrussell이 좋더라고요
zsh-syntax-highlighting과 zsh-autosuggestions 설치하기
zsh-syntax-highlighting : 명령어를 색상으로 구분해줌
zsh-autosuggestions : 자동으로 명령어 추천해줌 개꿀딱
# 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 git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
~/.zshrc
파일에 설정을 추가하기
vim ~/.zshrc
...
# plugins 위치에서
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
...