From dd081b6e5f62eb539fd637a956db7d7336d8e72d Mon Sep 17 00:00:00 2001 From: Adam Wallis Date: Tue, 17 Jul 2018 13:52:59 -0400 Subject: [PATCH] Add plugin for 'jump' Considering FASD has been deprecated, jump does the same thing but is actively maintained! https://github.com/gsamokovarov/jump --- plugins/available/jump.plugin.bash | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 plugins/available/jump.plugin.bash diff --git a/plugins/available/jump.plugin.bash b/plugins/available/jump.plugin.bash new file mode 100755 index 00000000..c7b38d28 --- /dev/null +++ b/plugins/available/jump.plugin.bash @@ -0,0 +1,14 @@ +cite about-plugin +about-plugin 'initialize jump (see https://github.com/gsamokovarov/jump)' + +__init_jump() { + command -v jump &> /dev/null + if [ $? -eq 1 ]; then + echo -e "You must install jump before you can use this plugin" + echo -e "See: https://github.com/gsamokovarov/jump" + else + eval "$(jump shell --bind=z)" + fi +} + +__init_jump