This script installs Zsh with Oh-My-Zsh, sets up a theme, and enables plugins.
- Installs Zsh with Oh-My-Zsh
- Sets up the
gnzh
theme - Enables
git
,zsh-autosuggestions
, andzsh-syntax-highlighting
plugins - Changes default shell to Zsh
To install, run the following command:
apt-get install -y wget
# Install zsh from zsh-in-docker repository
sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)" -- \
-t gnzh \
-p git \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-p https://github.com/zsh-users/zsh-syntax-highlighting
# Setup zsh as default shell (optional)
chsh -s $(which zsh) $(whoami)
git
,zsh
, andwget
must be installed- Root privileges for changing default shell