# 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