mirror of
https://abf.rosa.ru/djam/git.git
synced 2025-02-23 09:43:00 +00:00
Fix repository status in prompt
This commit is contained in:
parent
16da917cbb
commit
9e0a918635
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
# Include the current git branch in the 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)\")\]|")"
|
||||
export PS1="$(echo -n "$PS1" | sed "s| \\\w| \\\w\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")|")"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue