Skip to content

Instantly share code, notes, and snippets.

@popenke
Last active July 21, 2017 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save popenke/9f5bf9f8ecf09e4982592c59a5233846 to your computer and use it in GitHub Desktop.
Save popenke/9f5bf9f8ecf09e4982592c59a5233846 to your computer and use it in GitHub Desktop.
ZSH configuration using zplug 🌺
source ~/.zplug/init.zsh
# Manage zplug itself
zplug "zplug/zplug"
# Autosuggestions
zplug "zsh-users/zsh-autosuggestions"
# History search
zplug "zsh-users/zsh-history-substring-search"
# Additional completion for zsh
zplug "zsh-users/zsh-completions"
# Syntax highlighting
zplug "zsh-users/zsh-syntax-highlighting"
zplug "modules/completion", as:plugin, from:prezto
# Load theme file
zplug 'dracula/zsh', as:theme
zstyle ':completion:*' menu select
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Source plugins and add commands to $PATH
zplug load
# Zsh options
setopt HIST_IGNORE_SPACE # Do not record an event starting with a space
setopt SHARE_HISTORY # Share history between sessions
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits
setopt AUTO_CD # Auto changes to a directory without typing "cd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment