Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Oct 10 '10 at 15:15

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

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

See for some tips!

share|improve this answer
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

Another solution would be to use Alfred.

It has a feature called clipboard snippets which allows you to paste any text anywhere. I use it for pasting 'Lorem ipsum' text when I need dummy text. So I press CMD+ALT+C, Alfred pops up, then type lorem, press ENTER and a bunch of dummy text is pasted in my code editor, or design software.

In Alfred v3 there is a new feature called snippets auto-expansion which does this automatically without the need of pressing commands. So in my case I type lorem anywhere on OSX, and that automatically translates to:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas porttitor diam cursus ligula tristique bibendum. Etc... you get the idea.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .