Skip to content

Instantly share code, notes, and snippets.

@fcaldera
Last active July 4, 2024 15:41
Show Gist options
  • Save fcaldera/9b07025465d852d7e6c899087af5d918 to your computer and use it in GitHub Desktop.
Save fcaldera/9b07025465d852d7e6c899087af5d918 to your computer and use it in GitHub Desktop.
zsh configuration with zplug
export ZPLUG_HOME=/usr/local/opt/zplug
# Essential
source $ZPLUG_HOME/init.zsh
# Async for zsh, used by pure
zplug "mafredri/zsh-async", from:github, defer:0
# oh-my-zsh
zplug "lib/completion", from:oh-my-zsh
zplug "lib/directories", from:oh-my-zsh
zplug "lib/functions", from:oh-my-zsh
zplug "lib/history", from:oh-my-zsh
zplug "lib/theme-and-appearance", from:oh-my-zsh
zplug "plugins/command-not-found", from:oh-my-zsh
zplug "plugins/z", from:oh-my-zsh
# zsh-users
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "zsh-users/zsh-history-substring-search", defer:3
# theme
# zplug "sindresorhus/pure", use:pure.zsh, from:github, as:theme
zplug "oddhorse/bubblegum-zsh", use:bubblegum.zsh-theme, as:theme
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install zplug plugins? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment