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

shell command line history roll your own: fn history {grep '^term%' /mnt/wsys/text|sed -e 's/^term%//'}

oh yes that is so elegant...



It's DRY writ large. With that one command you get free text history for every program you use. You don't have to include history handling in each program individually.


So include that shortcut by default. It's UI. The job of the shell is to help the user get the job done.

Same argument goes for find. Its usefulness compared to du justifies its existence.




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

Search: