Sunday 2014-03-09

This guy ( z3bra ) showed up on /r/unixporn with a screenshot that had the following shell session:

The prompt gives no info about $PWD or history or anything. At first glance, I thought they were just being a ricer, and then they go and use 'ed'. How much head-space does this guy have? Or does he just have usage rules/conventions that eliminate the need for state management?

It seems that one can make a minimal prompt work by using the following:

  1. Never use !N, always use CTRL-r
  2. Use pushd to keep track of directory history
  3. Use absolute paths
  4. Never print time in shell, log timestamp in .history
  5. Never su, always sudo