dotfiles/zsh/plugins.zsh

59 lines
1.6 KiB
Bash
Raw Normal View History

2018-11-10 14:55:37 +00:00
#!/usr/bin/env zsh
source "$ZSH_DOTFILES/zplg.zsh"
plugin completions 'zsh-users/zsh-completions'
# Oh-My-Zsh {{{
# initialize the completion system
autoload -Uz compinit && compinit -C
ZSH_CACHE_DIR="$ZSH_DOTFILES/cache"
# disable automatic updates because OMZ is managed by my plugin manager
DISABLE_AUTO_UPDATE=true
2018-12-03 08:27:28 +00:00
2018-11-10 14:55:37 +00:00
# use hyphen-insensitive completion (makes `_` and `-` interchangeable)
HYPHEN_INSENSITIVE=true
2018-11-10 14:55:37 +00:00
# enable command auto-correction
ENABLE_CORRECTION=true
2018-11-10 14:55:37 +00:00
# display red dots while waiting for completion
COMPLETION_WAITING_DOTS=true
2018-11-10 14:55:37 +00:00
# disable marking untracked files under VCS as dirty (this makes repository
# status check for large repositories much faster)
DISABLE_UNTRACKED_FILES_DIRTY=true
2018-11-10 14:55:37 +00:00
# command execution time stamp shown in the history
HIST_STAMPS=dd.mm.yyyy
omz_plugins=(git extract fasd)
plugin oh-my-zsh 'robbyrussell/oh-my-zsh' \
load='lib/*.zsh' load='plugins/'${^omz_plugins}'/*.plugin.zsh' \
ignore='lib/(compfix|diagnostics).zsh' \
before_load='ZSH="$plugin_dir"' \
after_load='plugin-cfg-path fpath prepend completions functions' \
after_load='plugin-cfg-path fpath prepend plugins/'${^omz_plugins}
unset omz_plugins
# }}}
2018-11-10 14:55:37 +00:00
plugin fzf 'junegunn/fzf' build='./install --bin' \
after_load='plugin-cfg-path path prepend bin' \
after_load='plugin-cfg-path manpath prepend man'
2018-11-10 14:55:37 +00:00
plugin alias-tips 'djui/alias-tips'
2018-11-10 14:55:37 +00:00
plugin ssh 'zpm-zsh/ssh'
2018-11-10 14:55:37 +00:00
plugin base16-shell 'chriskempson/base16-shell' \
after_load='export BASE16_SHELL="$plugin_dir"'
2018-11-10 14:55:37 +00:00
FAST_WORK_DIR="$ZSH_CACHE_DIR"
plugin fast-syntax-highlighting 'zdharma/fast-syntax-highlighting'