Command History

Since all the cool kids are doing it …

Work laptop

christian@yga-dowski:~$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' |sort -rn|head
82 sudo
68 vim
51 ls
49 cd
48 exit
20 hg
16 rm
16 ipython
14 py.test
10 ping

Apparently I do a lot of exiting. I just started using Mercurial for local revision control, hence the presence of hg.

Dev server

(where I actually do most of my work)

cmw@watson:~/svn/g2wc$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' |sort -rn|head
158 vim
81 make
70 svn
55 rm
34 ls
33 cd
15 sudo
11 exit
7 kinit
7 htop

The make commands encapsulate many calls to python and py.test.

2 Responses to “Command History”

  1. michael schurter Says:

    Aha! Finally someone else who runs ipython locally while they work remotely? Perhaps? :)

    Try ctrl-d for exit. 2 ctrl-d’s exit ipython as well. Someone else had aliased ‘u’ for ‘cd ..’ which seems handy too.

  2. christian Says:

    Yep, I do most of my ipython tinkering locally. Thanks for the ctrl-d tip.

Leave a Reply