Page MenuHomeDevCentral

update-git-prompt
No OneTemporary

update-git-prompt

# Usage: add to your .cshrc file the following alias:
# alias precmd 'source ~/bin/update-git-prompt'
setenv GIT_BRANCH_CMD "sh -c 'git branch --no-color 2> /dev/null' | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'"
set prompt="%B%/%b `$GIT_BRANCH_CMD`] "

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 6, 20:08 (2 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4145422
Default Alt Text
update-git-prompt (253 B)

Event Timeline