mirror of
https://abf.rosa.ru/djam/git.git
synced 2025-02-23 04:02:47 +00:00
6 lines
253 B
Bash
6 lines
253 B
Bash
# Include the current git branch in the prompt
|
|
|
|
. /usr/share/bash-completion/completions/git-prompt
|
|
if type __git_ps1 &>/dev/null; then
|
|
export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")\]|")"
|
|
fi
|