From 0cded54b7f4aa9bfe6a6b27ac3335713a866b316 Mon Sep 17 00:00:00 2001 From: Peter Butkovic Date: Mon, 15 Sep 2014 15:42:20 +0200 Subject: [PATCH] added homeshick plugin --- plugins/homeshick/homeshick.plugin.zsh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugins/homeshick/homeshick.plugin.zsh 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 +