Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Put a blank line at the beginning of your PS1 instead. This has the added benefit of clearly separating every command. My PS1 actually is this:

  rpatterson@rpatterson-tba 04/27/2012 01:24 PM ~
  $ 
This gives me a full row to type a command, and lets me see how long ago the last command finished. Each of those components is bold and colored differently.


I do this too. It helps me to have a blank line between invocations of different commands.

    [prakash@kaveri 16:39:05 ~ :) ]
    >> sleep 10
    ^C

    [prakash@kaveri 16:39:18 ~ :( ]


I assume the smilies drive off of $? ? Interesting idea....


So...your interrupted 'sleep 10' took 13 seconds?


No, the time between when the first PS1 was printed and when he pressed ^C was approximately 13 seconds.


Of course, my bad.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: