you have to mofify ~/.basrc from that:
if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt
to
if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ ' fi #unset color_prompt force_color_prompt
Modification details:
$(parse_git_branch)\[\033[00m\]
unset color_prompt force_color_prompt
linesrc: https://askubuntu.com/questions/730754/how-do-i-show-the-git-branch-with-colours-in-bash-prompt
First, create a Samba share on the easiest way. For example, mine: [macbook-pro-14] path =…
I use this and I experiened like this: The branch name is shortened and can't…
I really like IDEA for developing. I worked on a golang project and I organised…
For reusage: docker run -d \-p 8200:8200 \--restart=on-failure:3 \--name minidlna \-v /opt/minidlna/cache:/minidlna/cache \-v /mnt/data/series:/media/series \-v…
On my host the ipv6 is disabled. I had to start a docker image, which…
I have a Conbee II Zigbee receiver. After a restart the USB passthrought stopped working…
This website uses cookies.