Skip to content

Instantly share code, notes, and snippets.

@kujyp
Created June 3, 2023 22:46
Show Gist options
  • Save kujyp/55993c3ceb0b66abf34a3f6726ef2b75 to your computer and use it in GitHub Desktop.
Save kujyp/55993c3ceb0b66abf34a3f6726ef2b75 to your computer and use it in GitHub Desktop.
QJ - zsh_plugins.sh
brew install zsh
brew install zsh-completions
mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
chsh -s /bin/zsh $whoami
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/agkozak/zsh-z ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-z
sed -i -e "s/^plugins.*/plugins=(git z zsh-syntax-highlighting zsh-autosuggestions)/" ~/.zshrc
sed -i -e "s/^ZSH_THEME.*/ZSH_THEME=\"\"/" ~/.zshrc
echo -e "\n# Pure\nfpath+=$HOME/.zsh/pure\nautoload -U promptinit; promptinit\nprompt pure" >> ~/.zshrc
echo -e "\n# Bashrc\nif [[ -f ~/.bash_profile ]]; then\n source ~/.bash_profile\nfi\n" >> ~/.zshrc
# [oh-my-zsh] Insecure completion-dependent directories detected:
compaudit | xargs chmod g-w,o-w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment