Git info in your ZSH Prompt
11–20 of 27 posts
Re: Git info in your ZSH Prompt
#12I've been really digging oh-my-zsh recently for extending zsh, comes with a great plugin architecture and all sorts of cool shit: http://github.com/robbyrussell/oh-my-zsh
Re: Git info in your ZSH Prompt
#13Wow, am I the only person who prefers a shell prompt of just "$ "? I have a bunch of abbreviations for common git commands, though, so I guess it balances out.
I have git status in my prompt but also use short shell aliases. If anyone's curious:
http://github.com/samsonjs/config/blob/master/zsh/zshrc#L230...
Re: Git info in your ZSH Prompt
#14Wow, am I the only person who prefers a shell prompt of just "$ "? I have a bunch of abbreviations for common git commands, though, so I guess it balances out.
Re: Git info in your ZSH Prompt
#15Wow, am I the only person who prefers a shell prompt of just "$ "? I have a bunch of abbreviations for common git commands, though, so I guess it balances out.
You're not- I can't stand waiting 3-5 seconds every time I hit enter, just so I can have a more verbose prompt that tells me things I already knew.
Re: Git info in your ZSH Prompt
#16Wow, am I the only person who prefers a shell prompt of just "$ "? I have a bunch of abbreviations for common git commands, though, so I guess it balances out.
(1) How long the last command took (approx, as there's time between the prompt showing and me putting in a command)
(2) How long ago I ran the last command in a given shell window
Re: Git info in your ZSH Prompt
#17Note also that there's a more feature complete version that accomplishes the same tasks in the contrib directory of git ( http://git.kernel.org/?p=git/git.git;a=blob;f=contrib/comple... ). It's implemented in bash but I use it with almost no modification with the Korn shell.
Re: Git info in your ZSH Prompt
#18Wow, am I the only person who prefers a shell prompt of just "$ "? I have a bunch of abbreviations for common git commands, though, so I guess it balances out.
My prompt on localhost is always "$ " or "# ", but I add user and host on remote machines to avoid making any big mistakes on the servers I manage.
Re: Git info in your ZSH Prompt
#19Earlier quoted context omitted.
You're not- I can't stand waiting 3-5 seconds every time I hit enter, just so I can have a more verbose prompt that tells me things I already knew.
The one I wrote, for Bash, uses SIGALRM (via the Time::HiRes perl module) to time out after half a second: http://github.com/paulbaumgart/git-situational-awareness
Re: Git info in your ZSH Prompt
#20Wow, am I the only person who prefers a shell prompt of just "$ "? I have a bunch of abbreviations for common git commands, though, so I guess it balances out.
Nope, me too. I can see maybe using a prompt like this temporarily, or putting this info in an XTerm's title, but I spend most of my time on the command line and really don't want crap like this distracting me. My prompt on localhost is always "$ " or "# ", but I add user and host on remote machines to avoid making any big mistakes on the servers I manage.
* Mine currently says:
3.1 pra | 0:ksh 1:top 2:ksh 4:ksh- 5:w3m* | . 1.45, 1.57, 1.01 . 2010-10-07 23:07
which has system load, time, battery (on laptops), etc. "pra" = "pranaferox", my desktop. (I usually have a lot more shells open than that, but I turned everything off while installing a new light in the ceiling earlier.)