Install git-prompt to LWS directory
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
|
export GIT_PROMPT_PATH="$LWS/opt/bash-git-prompt"
|
||||||
|
GIT_PROMPT_INIT="$GIT_PROMPT_PATH/gitprompt.sh"
|
||||||
|
|
||||||
|
if [ -f "$GIT_PROMPT_INIT" ]; then
|
||||||
GIT_PROMPT_ONLY_IN_REPO=1
|
GIT_PROMPT_ONLY_IN_REPO=1
|
||||||
source $HOME/.bash-git-prompt/gitprompt.sh
|
source "$GIT_PROMPT_INIT"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# https://github.com/magicmonty/bash-git-prompt
|
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
|
readonly REPO="https://github.com/magicmonty/bash-git-prompt.git"
|
||||||
|
|
||||||
|
git clone "$REPO" "$GIT_PROMPT_PATH" --depth=1
|
||||||
|
|||||||
Reference in New Issue
Block a user