Install git prompt

This commit is contained in:
Martin Blazik
2020-09-10 20:13:43 +02:00
parent b534cf3895
commit 63d4fee93a

View File

@@ -1,11 +1,9 @@
#!/bin/bash
# https://github.com/magicmonty/bash-git-prompt
set -x
set -u
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
# ~/.bashrc
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
GIT_PROMPT_ONLY_IN_REPO=1
source $HOME/.bash-git-prompt/gitprompt.sh
fi