Skip to content

Instantly share code, notes, and snippets.

@lucarin91
Created September 11, 2018 16:31
Show Gist options
  • Save lucarin91/4e5a7a3b15841a754cc424b464518c14 to your computer and use it in GitHub Desktop.
Save lucarin91/4e5a7a3b15841a754cc424b464518c14 to your computer and use it in GitHub Desktop.
Install oh-my-zsh with fish-like plugins.
#!/bin/sh
set -ex
## install oh-my-zsh ##
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
## install fish-like plugins ##
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/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i '/plugins=($/a zsh-autosuggestions history-substring-search zsh-syntax-highlighting' ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment