[zsh] Added plugins.
This commit is contained in:
parent
9a2334f920
commit
d57d743a14
|
@ -0,0 +1,24 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
_plugin() {
|
||||||
|
_perf_timer_start "plugin $1"
|
||||||
|
plugin "$@"
|
||||||
|
_perf_timer_stop "plugin $1"
|
||||||
|
}
|
||||||
|
|
||||||
|
_plugin keybase-compl 'https://raw.githubusercontent.com/fnoris/keybase-zsh-completion/master/_keybase' from=url \
|
||||||
|
after_load='plugin-cfg-path fpath prepend ""'
|
||||||
|
|
||||||
|
_plugin gitio 'denysdovhan/gitio-zsh'
|
||||||
|
|
||||||
|
# from Dima, assuming it's based off of:
|
||||||
|
# https://github.com/dmitmel/dotfiles/blob/19d80233265629b33cf57daf05a928239b0c73a8/zsh/plugins.zsh#L17-L25
|
||||||
|
if gh_bin="$(command_locate gh)" && [[ -n "$gh_bin" ]]; then
|
||||||
|
gh_comp_path="${ZSH_CACHE_DIR}/site-functions/_gh"
|
||||||
|
if [[ "$gh_bin" -nt "$gh_comp_path" || ! -s "$gh_comp_path" ]]; then
|
||||||
|
_perf_timer_start "generate gh completions"
|
||||||
|
"$gh_bin" completion -s zsh >| "$gh_comp_path"
|
||||||
|
_perf_timer_stop "generate gh completions"
|
||||||
|
fi
|
||||||
|
unset gh_comp_path
|
||||||
|
fi; unset gh_bin
|
|
@ -4,7 +4,7 @@
|
||||||
K_ZSH_DOTFILES="$( dirname "$( readlink -f "$0" )" )"
|
K_ZSH_DOTFILES="$( dirname "$( readlink -f "$0" )" )"
|
||||||
source $K_ZSH_DOTFILES/../dmitmel-dotfiles/zsh/zshrc
|
source $K_ZSH_DOTFILES/../dmitmel-dotfiles/zsh/zshrc
|
||||||
|
|
||||||
for script in functions; do
|
for script in functions plugins; do
|
||||||
source "$K_ZSH_DOTFILES/$script.zsh"
|
source "$K_ZSH_DOTFILES/$script.zsh"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue