Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

3 Answers 3

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!

share|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

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.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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