0zshとoh-my-zshをインストールします
echo $SHELL
sudo yum install zsh
sudo apt install zsh
which zsh
chsh -s /bin/zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
1構文強調表示プラグイン
- インストール
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- 構成
〜/ .zshrcのプラグインにzsh-syntax-highlightingを追加します
2オートコンプリートプラグイン
- インストール
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
- 構成
〜/ .zshrcのプラグインにzsh-autosuggestionsを追加します
参照
CentOSはoh-my-zshをインストールし、構文の強調表示とコマンドのオートコンプリートを構成します