shell history

This is my shell history outside of nix:

➜ minicell git:(master) ✗ history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a; }' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 1 1110 11.1011% cd 2 814 8.14081% git 3 762 7.62076% ls 4 480 4.80048% z 5 402 4.0204% mv 6 352 3.52035% mkdir 7 345 3.45035% cat 8 326 3.26033% open 9 271 2.71027% subl 10 190 1.90019% rm ➜ minicell git:(master) ✗

This is my shell history inside of nix:

[nix-shell:/tmp]$ history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a; }' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 1 318 63.6% runhaskell 2 27 5.4% ls 3 23 4.6% cd 4 18 3.6% open 5 16 3.2% ghc 6 14 2.8% brew 7 13 2.6% [redacted] 8 9 1.8% git 9 9 1.8% cabal 10 7 1.4% nix-shell