Length of my shell aliases
I knew I liked to make my shell aliases short, but I wanted some statistics (FSVO “statistics”). With a simple pipe:
% alias | sed -e 's/^alias //;s/=.*//;s/././g' | sort | uniq -c | sort -rn
27 ....
25 ...
20 ..
12 .
11 .....
7 ......
6 ........
4 .........
2 .............
2 .......
1 ...................
This means 2-4 character aliases are the most common (surprise, surprise), followed by 1-character aliases, of which I have (oh god) 12.
That’s 117 aliases total...