dotfiles/.config/zsh/16-install-tmux-plugin-manager

14 lines
363 B
Text
Raw Normal View History

2019-02-04 14:27:49 +00:00
# Clone tmux plugin manager if not existing
if [[ -z "$TPM_PARENT_DIR" ]]; then
TPM_PARENT_DIR=$HOME
fi
if [[ ! -f $TPM_PARENT_DIR/.tmux/plugins/tpm/tpm ]]; then
if [[ ! -d "$TPM_PARENT_DIR" ]]; then
mkdir -p "$TPM_PARENT_DIR"
fi
pushd $TPM_PARENT_DIR
git clone https://github.com/tmux-plugins/tpm ./.tmux/plugins/tpm
popd
fi
unset TPM_PARENT_DIR