Created
October 7, 2021 06:19
-
-
Save raul1991/9ca6ae4c15b9d7cbdc251c1cd839df84 to your computer and use it in GitHub Desktop.
Installing zsh with plugins and spaceship theme
This file contains 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
#!/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