plugins: autojump: support debian system
as title, load autojump.sh in debian system.pull/941/head
parent
438e3dadc0
commit
21fd969f40
|
|
@ -1,8 +1,10 @@
|
||||||
cite about-plugin
|
cite about-plugin
|
||||||
about-plugin 'Autojump configuration, see https://github.com/wting/autojump for more details'
|
about-plugin 'Autojump configuration, see https://github.com/wting/autojump for more details'
|
||||||
|
|
||||||
# Only supports the Homebrew variant at the moment.
|
# Only supports the Homebrew variant and Debian at the moment.
|
||||||
# Feel free to provide a PR to support other install locations
|
# 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
|
if command -v brew &>/dev/null && [[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]]; then
|
||||||
. $(brew --prefix)/etc/profile.d/autojump.sh
|
. $(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)"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue