diff --git a/plugins/homeshick/homeshick.plugin.zsh b/plugins/homeshick/homeshick.plugin.zsh new file mode 100644 index 00000000..4e0fe6a8 --- /dev/null +++ b/plugins/homeshick/homeshick.plugin.zsh @@ -0,0 +1,19 @@ +# first manually install homeshick via: +# git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick + +# make sure homeshick is available +if [ -f $HOME/.homesick/repos/homeshick/homeshick.sh ]; then + + # adding homeshick to path + . $HOME/.homesick/repos/homeshick/homeshick.sh + + # enable homeshick zsh completition (see official docs: https://github.com/andsens/homeshick/wiki/Installation#zsh-completion) + fpath=($HOME/.homesick/repos/homeshick/completions $fpath) + + # make autocompletition happen (workaround for: https://github.com/andsens/homeshick/issues/89) + compinit + + # useful aliases + alias hsckl="homeshick pull" +fi +