본문 바로가기
OS/linux

centos zsh 설치

by Knowledge Store In Hyunsoft 2020. 11. 10.

1.git 설치

yum install -y git

 

2.zsh 설치

yum install -y zsh

 

3. oh-my-zsh 설치

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

 

4. zsh-syntax-highlighting 설치

env | grep ZSH
yum install -y zsh-syntax-highlighting



git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH/plugins/zsh-syntax-highlighting

 

5.1.자동완성 기능 추가

git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH/plugins/zsh-autosuggestions

5.2 .zshrc에 plugins 추가

vi ~/.zshrc


plugins=( git zsh-autosuggestions zsh-syntax-highlighting)

#PROMPT
PROMPT="%T $(whoami)@$(hostname):%d%>:%{\e[0m%}>> "

 

728x90

댓글