I need to know if there is a terminal replacement for Mac which allows me to store frequently used or long command snippets.
e.g. this one: netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
this is quite long to type again and again and also quite hard to remember
So I would prefer to just store them in software itself.