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.

link|improve this question

20% accept rate
Belongs on superuser.com – Paul R Oct 9 '10 at 17:19
feedback

migrated from stackoverflow.com Oct 10 '10 at 15:15

This question came from our site for professional and enthusiast programmers.

3 Answers

Why not simply use bash aliases, then your shortcuts are available no matter what terminal software you use?

See http://www.hypexr.org/bash_tutorial.php#alias for some tips!

link|improve this answer
1  
You can also make your history reasonably large and then just use Control-R to recall command lines. – Paul R Oct 9 '10 at 17:20
What if you have e.g 50 of such commands ? It's a quite long list to remember even shortcuts of them. – chubbyk Oct 9 '10 at 17:25
+1 For bash aliases, I use them a lot. So much that it isn't even funny :P – Wuffers Oct 10 '10 at 16:29
feedback

While not a terminal replacement, you might want to check out Code Collector Pro

It's designed for collecting and organizing all of your frequently used code snippets. It has a free trial, so you could take a look and see if it works for you.

link|improve this answer
feedback

Take a look as CLIX. It's a GUI frontend that keeps (and runs) libraries of shell commands (it comes with a bunch, and you can add your own). The UI is rather clunky, but it sounds like pretty much what you want.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.