Git prompt is a third-party contribution to the git repository that enables users to see the status of a repository by appending the branch information to the end of the terminal prompt string.
This functionality is provided by a shell script, git-prompt.sh
, that can be downloaded here:
https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
1 Comment
Tim Hoar
This looks really useful for sh, zsh users ... but I could not figure out how to use it with the csh/tcsh shell.
The git-prompt.sh essentially provides the ability to manipulate the PS1 variable, which does not exist in csh/tcsh.
A little searching for this functionality in csh/tcsh led to https://gist.github.com/nicwolff/2925803 ... which I have not (yet) tried.