mryellow/debian-scripts

Git prompt re-use existing

Opened this issue · 0 comments

GIT_PROMPT_ONLY_IN_REPO=1
source ~/src/debian-scripts/git-prompt.sh
PSTMP=$(echo $PS1 | rev | cut -c 2- | rev)
PS1="$PSTMP$(__git_ps1 \" \(%s\)\")\$ "