Files
linux-workspace/install/git-prompt.sh
2024-09-01 16:24:15 +02: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