diff --git a/plugins/available/jump.plugin.bash b/plugins/available/jump.plugin.bash index 26d6467d31..6beaabbf0b 100644 --- a/plugins/available/jump.plugin.bash +++ b/plugins/available/jump.plugin.bash @@ -1,9 +1,10 @@ +# shellcheck shell=bash cite about-plugin about-plugin 'initialize jump (see https://github.com/gsamokovarov/jump). Add `export JUMP_OPTS=("--bind=z")` to change keybinding' -__init_jump() { - command -v jump &> /dev/null || return - eval "$(jump shell bash "${JUMP_OPTS[@]}")" +function __init_jump() +{ + _command_exists jump && eval "$(jump shell bash "${JUMP_OPTS[@]}")" } __init_jump