From 843eb7eca31058dc4406933090abc38556aae80f Mon Sep 17 00:00:00 2001 From: nikitinvasily Date: Sun, 28 May 2017 12:59:04 +0300 Subject: [PATCH] Update autojump.plugin.bash --- plugins/available/autojump.plugin.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/available/autojump.plugin.bash b/plugins/available/autojump.plugin.bash index 9bbbdceb..a050ace2 100644 --- a/plugins/available/autojump.plugin.bash +++ b/plugins/available/autojump.plugin.bash @@ -1,10 +1,12 @@ cite about-plugin about-plugin 'Autojump configuration, see https://github.com/wting/autojump for more details' -# Only supports the Homebrew variant and Debian at the moment. +# Only supports the Homebrew variant, Debian and Arch 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 elif command -v dpkg &>/dev/null && dpkg -s autojump &>/dev/null ; then . "$(dpkg-query -S autojump.sh | cut -d' ' -f2)" +elif command -v pacman &>/dev/null && pacman -Q autojump &>/dev/null ; then + . "$(pacman -Ql autojump | grep autojump.sh | cut -d' ' -f2)" fi