From 577b89ca2c797387c26e19e0108aa844218d8efd Mon Sep 17 00:00:00 2001 From: sveneh Date: Sat, 2 Jul 2016 19:19:55 +0200 Subject: [PATCH] added Debian / Ubuntu support for autojump --- plugins/available/autojump.plugin.bash | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/available/autojump.plugin.bash b/plugins/available/autojump.plugin.bash index 7ba98879..db0d129f 100644 --- a/plugins/available/autojump.plugin.bash +++ b/plugins/available/autojump.plugin.bash @@ -1,8 +1,13 @@ cite about-plugin about-plugin 'Autojump configuration, see https://github.com/wting/autojump for more details' -# Only supports the Homebrew variant at the moment. +# Only covers MacOS brew and Debian installs # 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 + source $(brew --prefix)/etc/profile.d/autojump.sh +fi + +# Debian / Ubuntu - install it via apt-get install autojump +if [[ -s /usr/share/doc/autojump/README.Debian ]]; then + source /usr/share/autojump/autojump.sh fi