zsh
설치
sudo dnf install zsh git util-linux-user -y
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
설치(맥)
- 정상적으로 설치되었다면 cmd+N 으로 zsh로 실행됨
- 만약 그대로라면
chsh -s /usr/local/bin/zsh 명령으로 shell 변경 가능
Windows Git Bash
echo 'test -f ~/.bashrc && . ~/.bashrc' > ~/.bash_profile
echo 'if [ -t 1 ]; then
exec zsh
fi' > ~/.bashrc
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Plugin
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions.git
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
Change Shell
chsh -s $(which zsh)
sudo su
passwd ec2-user
참고