From a0880d316c7e887fb8c3cbe58ce5b3d9ee2dad85 Mon Sep 17 00:00:00 2001 From: Philipp Frischmuth Date: Mon, 7 Feb 2011 19:50:34 +0100 Subject: [PATCH] Added support for auto completion, initialize functions.d on make install, copy _j from autojump --- Makefile | 3 +++ completion.zsh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 8eb3edb..95b9076 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,9 @@ install: hg clone git://github.com/nicoulaj/zsh-syntax-highlighting.git hg clone git://github.com/robbyrussell/oh-my-zsh.git hg clone git://fizsh.git.sourceforge.net/gitroot/fizsh/fizsh + mkdir -p $(PWD)/functions.d + cp -f $(PWD)/autojump/_j $(PWD)/functions.d/_j + sudo ln -sf $(PWD)/autojump/autojump /usr/bin/autojump clean: rm -r ./autojump diff --git a/completion.zsh b/completion.zsh index e25805b..6ed9db9 100644 --- a/completion.zsh +++ b/completion.zsh @@ -4,6 +4,9 @@ # tab completion configuration # +fpath=( ~/.zsh/functions.d/ $fpath ) +autoload -U ~/.zsh/functions.d/*(:t) + # load completions system zmodload -i zsh/complist