source ~/.zplug/init.zsh # Let zplug manage itself zplug "zplug/zplug", hook-build:"zplug --self-manage" # Load ZSH syntax highlighting (deferred until after compinit) zplug "zsh-users/zsh-syntax-highlighting", defer:2 # Load ZSH History substring search (cycle through history with up arrow) # This HAS to be loaded after zsh-syntax-highlighting zplug "zsh-users/zsh-history-substring-search", defer:3 # Add ZSH auto suggestions zplug "zsh-users/zsh-autosuggestions" # Add ZSH completions zplug "zsh-users/zsh-completions" # Add prezto git plugin (must be loaded after utility module) zplug "modules/git", from:prezto # Add prezto history plugin zplug "modules/history", from:prezto # Add rupa/z zplug "rupa/z", use:z.sh # Load subnixr/minimal prompt zplug "subnixr/minimal" # Load completions installed with homebrew zplug "/usr/local/share/zsh/site-functions", from:local, use:"*" # 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 # Then, source plugins and add commands to $PATH zplug load # Add fnm to PATH eval "$(fnm env --multi)" # Set keybindings for history substring search bindkey "^[[A" history-substring-search-up bindkey "^[[B" history-substring-search-down