OK, everybody does that:
history|awk '{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
103 l
82 svn
72 cd
22 rm
20 vi
20 make
17 sudo
16 grep
15 g
10 ps
not to mention the ctrl-up binded to history-search-backward that I use constantly, sometimes to search really short commands
and while I’m at it, crtl-l for “|less” and ctrl-g for “|grep “. Really useful.
2 comments ↓
l just for ls -lh? You are so lazy man!
That’s nothing, I use :
l=ls
ll=ls -l
..=cd ..
not to mention the ctrl-up binded to history-search-backward that I use constantly, sometimes to search really short commands
and while I’m at it, crtl-l for “|less” and ctrl-g for “|grep “. Really useful.
Leave a Comment