Files
linux-workspace/scripts/git-prompt-install.sh
2023-02-09 17:22:42 +01:00

14 lines
283 B
Bash
Executable File

#!/bin/bash
set -E -o errexit -o nounset -o pipefail
set -x
GIT_PROMPT_PATH=${GIT_PROMPT_PATH:-$LWS/opt/bash-git-prompt}
readonly REPO="https://github.com/magicmonty/bash-git-prompt.git"
if [[ ! -d "$GIT_PROMPT_PATH" ]]; then
git clone "$REPO" "$GIT_PROMPT_PATH" --depth=1
fi