This 'HowTo' goes through steps to become your shell env fully productive.
- Install newer ZSH version
- Install OHMyZSH
- Install Powerlevel10k
- Add ZSH Plugins:
- zsh-autosuggestions
- zsh-syntax-highlighting
sudo yum -y groupinstall "Development tools"
sudo yum install ncurses-devel
curl -L https://sourceforge.net/projects/zsh/files/zsh/${ZSH_VER}/zsh-${ZSH_VER}.tar.xz | tar xJ
cd zsh-${ZSH_VER}/
./configure
sudo make && sudo make install
sudo ln -s /usr/local/bin/zsh /usr/bin/zsh
zsh --version
echo '/usr/bin/zsh' | sudo tee -a /etc/shells
chsh -s /usr/bin/zsh $USER
Install OHMyZSH via the command-line with curl:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
After that, update your ZSH enviroment:
source ~/.zshrc
Once this done, an interactive sequence of powerlevel10k definitions will be started. Follow the steps and save it.
- zsh-autosuggestions
- Clone this repository into
$ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- zsh-syntax-highlighting
- Clone this repository in oh-my-zsh's plugins directory:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- Add these ZSH plugins to the Zsh list (inside
~/.zshrc
):
plugins=(
zsh-autosuggestions
zsh-syntax-highlighting
)
- (RE)Start a new ZSH session.
Sources: