From 62d6014d1461f770961657c477874b1dd6e4ba10 Mon Sep 17 00:00:00 2001 From: Bradley Priest Date: Sun, 14 Aug 2011 20:35:03 +1200 Subject: [PATCH] Added a z plugin https://github.com/rupa/z --- plugins/z/z.plugin.zsh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 plugins/z/z.plugin.zsh diff --git a/plugins/z/z.plugin.zsh b/plugins/z/z.plugin.zsh new file mode 100644 index 000000000..f31ccd576 --- /dev/null +++ b/plugins/z/z.plugin.zsh @@ -0,0 +1,6 @@ +if [ -f `brew --prefix`/etc/profile.d/z.sh ]; then + . `brew --prefix`/etc/profile.d/z.sh + function precmd () { + z --add "$(pwd -P)" + } +fi