2018-11-10 14:55:37 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
2019-06-27 11:14:18 +00:00
|
|
|
# https://github.com/zdharma/zplugin/blob/master/doc/mod-install.sh
|
|
|
|
# https://github.com/zdharma/zplugin/blob/master/zmodules/Src/Makefile.in
|
|
|
|
# https://github.com/zsh-users/zsh/blob/master/Etc/zsh-development-guide
|
|
|
|
|
|
|
|
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)
|
2019-06-27 11:14:18 +00:00
|
|
|
HYPHEN_INSENSITIVE=true
|
2018-11-10 14:55:37 +00:00
|
|
|
|
|
|
|
# enable command auto-correction
|
2019-06-27 11:14:18 +00:00
|
|
|
ENABLE_CORRECTION=true
|
2018-11-10 14:55:37 +00:00
|
|
|
|
|
|
|
# display red dots while waiting for completion
|
2019-06-27 11:14:18 +00:00
|
|
|
COMPLETION_WAITING_DOTS=true
|
2018-11-10 14:55:37 +00:00
|
|
|
|
|
|
|
# disable marking untracked files under VCS as dirty (this makes repository
|
2019-06-27 11:14:18 +00:00
|
|
|
# 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
|
2019-06-27 11:14:18 +00:00
|
|
|
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
|
|
|
|
2019-06-27 11:14:18 +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
|
|
|
|
2019-06-27 11:14:18 +00:00
|
|
|
plugin alias-tips 'djui/alias-tips'
|
2018-11-10 14:55:37 +00:00
|
|
|
|
2019-06-27 11:14:18 +00:00
|
|
|
plugin ssh 'zpm-zsh/ssh'
|
2018-11-10 14:55:37 +00:00
|
|
|
|
2019-06-27 11:14:18 +00:00
|
|
|
plugin base16-shell 'chriskempson/base16-shell' \
|
|
|
|
after_load='export BASE16_SHELL="$plugin_dir"'
|
2018-11-10 14:55:37 +00:00
|
|
|
|
2019-06-27 11:14:18 +00:00
|
|
|
FAST_WORK_DIR="$ZSH_CACHE_DIR"
|
|
|
|
plugin fast-syntax-highlighting 'zdharma/fast-syntax-highlighting'
|