Created
December 27, 2025 01:08
-
-
Save paul-lundstrom/651c74f5004b13d77be5e97bed351bbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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