Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56303241
update-git-prompt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
253 B
Referenced Files
None
Subscribers
None
update-git-prompt
View Options
# 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
Details
Attached
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)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment