Skip to content

Instantly share code, notes, and snippets.

@congdinh
Created February 10, 2025 08:26
Show Gist options
  • Save congdinh/dcb8314012eab94924d394153480d818 to your computer and use it in GitHub Desktop.
Save congdinh/dcb8314012eab94924d394153480d818 to your computer and use it in GitHub Desktop.
Install Oh my zsh and auto suggestion
#!/bin/bash
# Download iterm2 + zsh from these links
#https://sourabhbajaj.com/mac-setup/iTerm/zsh.html
#https://iterm2.com/
# Verify Zsh installation
zsh --version
# Install Oh My Zsh
# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
# Define ZSH_CUSTOM directory
ZSH_CUSTOM="$HOME/.oh-my-zsh/custom"
# Download zsh-autosuggestions plugin
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
# Download zsh-syntax-highlighting plugin
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
# Replace .zshrc with the specified file
curl -fsSL https://gist.github.com/congdinh/02e043362eb33ff961195c59695647fe/raw/b173e1b16f9773e6de9b96241f04202264a8a86b/zshrc.sh -o $HOME/.zshrc
echo "Zsh installation and configuration completed. Please log out and log back in to start using Zsh."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment