change affichage git branch
This commit is contained in:
parent
623733ec1e
commit
f904f516f2
@ -195,6 +195,7 @@ sudo nano ~/.bashrc
|
|||||||
git_branch() {
|
git_branch() {
|
||||||
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
|
||||||
}
|
}
|
||||||
|
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]:\[\033[38;5;5m\]\$(git_branch)\[\033[00m\]\$ "
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user