Skip to content

Instantly share code, notes, and snippets.

@raul1991
Created October 7, 2021 06:19
Show Gist options
  • Save raul1991/9ca6ae4c15b9d7cbdc251c1cd839df84 to your computer and use it in GitHub Desktop.
Save raul1991/9ca6ae4c15b9d7cbdc251c1cd839df84 to your computer and use it in GitHub Desktop.
Installing zsh with plugins and spaceship theme
#!/bin/bash
set -e
# install zsh shell
brew install zsh
# install ohmyzsh for customizations
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# adding the syntax highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# adding the auto suggestions
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# add plugins
sed -i 's/plugins=.*/plugins=(git colored-man-pages colorize pip python zsh-autosuggestions)/g' ~/.zshrc
# Adding spaceship theme
sed -e 's/ZSH_THEME=.*/ZSH_THEME=spaceship/g' ~/.zshrc
# enforce changes
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment