Skip to content

Instantly share code, notes, and snippets.

@mkb
Created June 7, 2012 04:55
Show Gist options
  • Select an option

  • Save mkb/2886674 to your computer and use it in GitHub Desktop.

Select an option

Save mkb/2886674 to your computer and use it in GitHub Desktop.

I've been rejiggering my prompt. The story so far...

have

left side

  • id@host - arguably useless yet i find them reassuring
  • git branch name - in red if master
  • git branch dirty
  • cwd

right side

  • more detailed git status flags
  • rvm ruby version (and gemset, though i seldom use those)
  • last command exit status if nonzero

want

  • % or # depending on whether i'm root
  • more general VCS indicators for the non-git world

considering

  • execution time of last command
  • time
  • command #
  • time since last commit
  • presence of background jerbs
  • current git sha

do not want

  • date

http://cl.ly/3s1K45301f090D2F4515

@eghm
Copy link

eghm commented Jun 7, 2012

How many lines? At the last place we worked together I had a two line prompt. Which included host, branch, and ports for that branch. Colored red if I was in integ. Sometimes I have found the time it took to execute the last command useful, esp for those long tasks that I wasn't paying enough attention to, to notice if they were getting longer.

@mkb
Copy link
Author

mkb commented Jun 7, 2012 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment