Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gruseom
on Oct 8, 2010
|
parent
|
context
|
favorite
| on:
Git info in your ZSH Prompt
It definitely can tell you whether you have staged files, because I use it for that among other things. I don't remember how I turned that feature on, but it wasn't hard. Perhaps someone will chime in with the details.
l0stman
on Oct 8, 2010
[–]
Just add the following lines in your .bashrc:
export GIT_PS1_SHOWDIRTYSTATE=yes export GIT_PS1_SHOWUNTRACKEDFILES=yes
avar
on Oct 8, 2010
|
parent
[–]
Thanks. I didn't know about those. I've configured them in my ~/.bashrc now:
http://github.com/avar/dotfiles/commit/43454870
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: