Install
1
2
3
4
5
| id=$(whoami)
sudo apt install wget curl git
sudo apt install zsh
sudo chsh -s $id $(which zsh)
|
oh-my-zsh
설치
1
| sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
theme 변경
1
2
3
| vim ~/.zshrc
ZSH_THEME="agnoster”
|
font 설정
1
| sudo apt install fonts-powerline
|
cf) 윈도우
1
2
3
| git clone https://github.com/powerline/fonts.git
cd fonts/DroidSansMono
& '.\Droid Sans Mono for Powerline.otf'
|
이후 terminal font를 powerline으로 변경
주요 plugin 설정
(이후 ctrl + r로 기능 확인 가능)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| # zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
echo "source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
echo "source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
# fzf (Fuzzy Finder )
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
# .zshrc에 내용 추가
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
|
완성
참고 링크
https://log4cat.tistory.com/7