lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with showing git status in bash


From: Federico Bruni
Subject: Re: Problem with showing git status in bash
Date: Thu, 01 Mar 2018 18:49:10 +0100



Il giorno gio 1 mar 2018 alle 17:01, Simon Albrecht <"simon.albrecht"@mail.de> ha scritto:
Hello everybody,

I just applied the suggestion from the CG to add

export PS1="address@hidden \w\$(__git_ps1)$ "
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWUPSTREAM=auto

to ~/.bashrc in order to show the status of a git repository in the command prompt. Attached is an image of what I got: colouring as well as the colon after the host name got lost. Can that be prevented?



You should adapt the PS1 variable.
Well, adding the colon back is easy: type : after \h. For the colors, have a look here:
https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]