Last active
July 21, 2017 19:59
-
-
Save popenke/9f5bf9f8ecf09e4982592c59a5233846 to your computer and use it in GitHub Desktop.
ZSH configuration using zplug 🌺
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
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