From 1e81df500456bace52377a4834da18fa56b027eb Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Tue, 5 Apr 2016 08:02:13 +0200 Subject: [PATCH] Added Autojump plugin See https://github.com/wting/autojump for more details. Currently only supports the version installed through Homebrew on OS X. Please feel free to provide a PR for supporting additional installation options. --- plugins/available/autojump.plugin.bash | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plugins/available/autojump.plugin.bash diff --git a/plugins/available/autojump.plugin.bash b/plugins/available/autojump.plugin.bash new file mode 100644 index 00000000..7ba98879 --- /dev/null +++ b/plugins/available/autojump.plugin.bash @@ -0,0 +1,8 @@ +cite about-plugin +about-plugin 'Autojump configuration, see https://github.com/wting/autojump for more details' + +# Only supports the Homebrew variant at the moment. +# Feel free to provide a PR to support other install locations +if command -v brew &>/dev/null && [[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]]; then + . $(brew --prefix)/etc/profile.d/autojump.sh +fi