Skip to content

Instantly share code, notes, and snippets.

@paul-lundstrom
Created December 27, 2025 01:08
Show Gist options
  • Select an option

  • Save paul-lundstrom/651c74f5004b13d77be5e97bed351bbb to your computer and use it in GitHub Desktop.

Select an option

Save paul-lundstrom/651c74f5004b13d77be5e97bed351bbb to your computer and use it in GitHub Desktop.
# install zsh
rm -rf ~/.oh-my-zsh/
echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install zsh-autosuggestions
rm -rf ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# edit plugins
if [ "$(uname)" = "Darwin" ]; then
sed -i '' '/^plugins=(/ s/)/ zsh-autosuggestions)/' ~/.zshrc
elif [ "$(uname)" = "Linux" ]; then
sed -i '/^plugins=(/ s/)/ zsh-autosuggestions)/' ~/.zshrc
else
echo "Unsupported OS"
exit 1
fi
# Change default shell
echo "Changing default shell to zsh"
sudo chsh -s "$(which zsh)" "$USER"
echo "done"
zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment