From 8504d8f7690e0f34509d50c0f943f2cfc7eaa247 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 15 May 2019 10:27:03 +0200 Subject: [PATCH] add check for autojump plugin before loading into shell --- .config/shell/zshrc.d/0-plugins.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/shell/zshrc.d/0-plugins.zsh b/.config/shell/zshrc.d/0-plugins.zsh index 9048ffa..a674d92 100644 --- a/.config/shell/zshrc.d/0-plugins.zsh +++ b/.config/shell/zshrc.d/0-plugins.zsh @@ -90,7 +90,10 @@ load_plugins() { zgen oh-my-zsh plugins/rsync zgen oh-my-zsh plugins/screen zgen oh-my-zsh plugins/vagrant - zgen oh-my-zsh plugins/autojump + # check for autojump install before applying plugin + if [ type autojump >/dev/null 2>&1 ]; then + zgen oh-my-zsh plugins/autojump + fi zgen oh-my-zsh plugins/tmux zgen oh-my-zsh plugins/tmuxinator