Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've just read with pleasure, and learned a lot from these questions :

But I didn't find in these some of my favorites tools, which I use on a daily basis, and I think that's because these are OSX/Terminal intended tools, not fitting well in above questions.

My favorites are, by order of preference: oh-my-zsh, homebrew (but also macports), janus...

These tools having in common :

  • Terminal: install and use
  • OSX Intended: brew is, git is not!
  • Easy Install: one liner, ie. git clone; wget ... etc.
  • Extensible: possibly has extensions or simple API (eg. oh-my-zsh with plugins, brew with formulas, janus with bundled vim plugins...)
  • Often open source, free, hosted on github, scripted, mostly (but not only!) with ruby...

Do you know any other similar must-have tools? I would love to discover new ones!

Please only include one utility per answer. Also, please don't add duplicates. Check first before posting. If you see a duplicate, kindly downvote the answer and inform the author by leaving a comment.

share|improve this question

closed as off-topic by bmike Sep 21 at 18:38

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

homebrew and macports together could have issues as macports will read files installed by homebrew and they will not necessarily be the correct version – Mark Apr 16 '11 at 7:51
true, but 95% of time there is no major issue, and for remaining 5% cases, just changing temporarily the $PATH is often the solution... I prefer brew for ease and lightweight, but macports has many more packages we will probably never see in homebrew... – Vincent Apr 16 '11 at 9:29
@Vincent - the whole point of homebrew is that you can fairly easily build your own formula's so the "never see in homebrew" seems to miss the point of it entirely. MacPorts is convenient, since you don't really have to do much, effectively giving you a BSD port or Debian apt-get style installer. – Slomojo Aug 30 '11 at 0:55
It's OK to answer your own question - why not split off the "answers" and just leave the question. – bmike Aug 30 '11 at 3:23
@slojomo, look at some very complex macports "ports" with tons of dependencies like deluge, you will understand... plus the fact that homebrew has a policy of no formula overriding system components... (like mysql...) – Vincent Aug 30 '11 at 8:27

25 Answers 25 ipcalc

 🍺  /usr/local/Cellar/ipcalc/0.41: 4 files, 40K, built in 2 seconds
 bash-3.2$ ipcalc
 Address:          00001010. 00010100.00011110.00101000
 Netmask: = 8        11111111. 00000000.00000000.00000000
 Wildcard:        00000000. 11111111.11111111.11111111
 Network:           00001010. 00000000.00000000.00000000
 HostMin:             00001010. 00000000.00000000.00000001
 HostMax:       00001010. 11111111.11111111.11111110
 Broadcast:       00001010. 11111111.11111111.11111111
 Hosts/Net: 16777214              Class A, Private Internet

It is also available in HomeBrew:

 bash-3.2$ brew install ipcalc
 ==> Downloading
share|improve this answer

Go2Shell (Free)

Not a terminal utility, but a utility for using Terminal. It puts a button in the Finder toolbar and when pressed it creates a new Terminal window cd'ed to that directory.

edit: The developers are saying that the version of the app available directly from them has more features than the version on the App Store. I've updated the link to go to their page, but the App Store version is still available here.

share|improve this answer
Nowadays does not work on Yosemite. – jherran Nov 9 '14 at 8:41
@jherran I haven't tried it myself, but the developers claim it works on Yosemite. If it doesn't for you try contacting them. – ThomasW Dec 4 '14 at 12:04
I did. And said the same to me, they are working on it, but from now, does not work on Yosemite. – jherran Dec 4 '14 at 12:07
They released version 2.2 on their website that they claim is Yosemite compatible. – ThomasW Jan 30 at 7:31

I like Color Maven

alias maven="command mvn"
color_maven() {
  maven $* | sed -e "s/\(\[INFO\]\ \-.*\)/[36;01m\1[m/g" \
               -e "s/\(\[INFO\]\ >>> .*\)/[32;01m\1[m/g" \
               -e "s/\(\[INFO\]\ <<< .*\)/[32;01m\1[m/g" \
               -e "s/\(\[INFO\]\ Building .*\)/[36;01m\1[m/g" \
               -e "s/\(\[INFO\]\ \[.*\)/01m\1[m/g" \
               -e "s/\(\[INFO\]\ BUILD SUCCESS\)/[01;32m\1[m/g" \
               -e "s/\(\[INFO\]\ BUILD FAILURE\)/[01;31m\1[m/g" \
               -e "s/\(\[WARNING\].*\)/[01;33m\1[m/g" \
               -e "s/\(WARN.*\)/[01;33m\1[m/g" \
               -e "s/\(DEBUG.*\)/[01;33m\1[m/g" \
               -e "s/\(\[ERROR\].*\)/[01;31m\1[m/g" \
               -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/[32mTests run: \1[m, Failures: [01;31m\2[m, Errors: [01;31m\3[m, Skipped: [01;33m\4[m/g"
alias mvn=color_maven

Color LS

alias ls='ls -FG'
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
share|improve this answer

Shell functions

I can't live without this.

  • One command to update them all.

    update() {
        local brew="brew update; brew upgrade;"
        local gisty="gisty pull_all; gisty sync_delete"
        local gem="gem update;"
        local pip="pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs pip install -U -q"
        sh -c $brew$gisty; sudo sh -c $gem$pip

    Obviously you can add more commands according to the package managers you use. This is made by me.

  • Change directory to the current Finder directory

    cdf() {
        target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'`
        if [ "$target" != "" ]; then
            cd "$target"; pwd
            echo 'No Finder window found' >&2

    cdf to open the Finder directory in the terminal and open . to open in Finder the directory terminal directory.


  • Get colors in manual pages

    man() {
        env \
        LESS_TERMCAP_mb=$(printf "\e[1;31m") \
        LESS_TERMCAP_md=$(printf "\e[1;31m") \
        LESS_TERMCAP_me=$(printf "\e[0m") \
        LESS_TERMCAP_se=$(printf "\e[0m") \
        LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
        LESS_TERMCAP_ue=$(printf "\e[0m") \
        LESS_TERMCAP_us=$(printf "\e[1;32m") \
        man "$@"


  • Use a RSA private key in git

        trap 'rm -f /tmp/.git_ssh.$$' 0
        echo "ssh -i $SSH_KEY \$@" > /tmp/.git_ssh.$$
        chmod +x /tmp/.git_ssh.$$
        export GIT_SSH=/tmp/.git_ssh.$$
        [ "$1" = "git" ] && shift
        git "$@"

    I noticed that putting this into your .rc will slow down git. If you want to avoid this you should unpack the function and save it as a shell script in your $PATH

    Source (I modified it a bit. The original asks every time for the key path.)

  • Syntax highlighting in cat

    cat() {
        local out colored
        out=$(/bin/cat $@)
        colored=$(echo $out | pygmentize -f console -g 2>/dev/null)
        [[ -n $colored ]] && echo "$colored" || echo "$out"

    This can be quite slow since it needs to parse the entire file before printing it. Never use this on a binary file!

    pip install Pygments to install pygments.

share|improve this answer
cdf is invaluable. thanks! – Phil Cohen Feb 17 '14 at 1:17
using RSA private key in git better with configuring SSH via ~/.ssh/config. – Eir Nym Jun 8 '14 at 11:36


bro pages are a highly readable supplement to man pages. Bro pages show concise, common-case examples for Unix commands.


$ bro find
14 entries for find -- submit your own example with "bro add find"

# Executes a command on the files and folders matching a given pattern, in this case, output the last lines of each .foo file in the current folder and subfolders.
find . -name "*.foo" -exec tail {} \;

        bro thanks      to upvote (24)
        bro       to downvote (0)


# Outputs all the file names/paths that start with the name "Casey".  Searches recursively starting from my current directory (.)
# Throws out any error output by sending it to /dev/null
find . -name "Casey*" 2>/dev/null

        bro thanks 2    to upvote (16)
        bro 2     to downvote (0)


# Finds all files in and under the current directory that contain 'foo' in their name
find . -iname '*foo*'

        bro thanks 3    to upvote (13)
        bro 3     to downvote (1)
share|improve this answer

The Silver Searcher (Free)

A code-searching tool similar to ack, but faster.

Install it with brew

brew install the_silver_searcher
share|improve this answer

Boxen - Automated Mac OS configuration and build, install/update software. It helps saving a lot of time when you want exactly the same setup, (software, version) in the development team and also allow each individual to install other tools to increase productivity.

share|improve this answer


The missing package manager for OS X.

It is an amazing package manager, very light and easy to use. KIS Principle, that makes me think of archlinux. Its community is big and very active.

(see also macports which brew doesn't replace completely, I prefer installing packages with brew, but some complex ones are only on macports)

See also brew tap command which provides some missing formulas that can be useful like when you need latest php version > brew tap josegonzalez/php.

(Homebrew has a policy of not replacing system components, but hey, sometimes you have to)

share|improve this answer
Your FormulaAlt link is down. (404) – ottel142 Apr 22 '13 at 10:52
edited to mention brew tap which is now the built in solution to handle external "formulas". – Vincent Apr 23 '13 at 18:17
Note you can also specify an "external" formula directly via URL to it's formula.rb – Slomojo Dec 31 '13 at 3:36
UPDATE: Homebrew is now willing to replace system components, e.g. make, curl, bash, zsh... You just need an extra step: brew link --force <package> to overwrite the system copy. Also, some non-essential duplicate packages are stored in the homebrew-dupes repo instead of the canonical one. – Caleb Xu Feb 4 at 1:17

Inconsolata-dz (Free)

This is a slight modification of the original Inconsolata. It is a fantastic monospaced font for use with, TextMate, MacVim and anywhere else you need one. A must have for any coder. enter image description here

share|improve this answer
+1 I like this one better than ProfontX – EmmEff Aug 30 '11 at 12:27
Unfortunately, it doesn't look very good to me on your screenshot. – Peter Štibraný Sep 6 '11 at 13:32
Seems it suffered some compression artifacts - replaced it with a (hopefully) better one! – Ingmar Hupp Mar 4 '13 at 14:17
Thank you. This is now my default font in almost every text writing application. – Rnhmjoj Jul 20 '13 at 1:55

oh-my-zsh (Free)

A handful of functions, auto-complete helpers, and stuff that makes you shout…


Made me love shell when I was just using it when I had to... Zsh is "bash on steroids", with oh-my-zsh and all its plugins, many specifics to OSX, shell is a lot more user friendly and powerful... Oh also themes are pretty cool.

Also worth giving a look, some alternatives / complements zsh based stuff :

  • prezto Is a complete rewrite of oh-my-zsh, clean and a lot more active, now using it :)
  • zsh-users (Free) Some very nice zsh stuff (love the syntax highlighting)
  • zcm (Free) zsh configuration manager (inspired from oh-my-zsh)
share|improve this answer
zsh with oh-my-zsh really is awesome, it will even do path completion over an scp/ssh command if you've enabled public key authentication to the server you're looking at, it rocks. (awesomely-powerful completion... /v/m/s/ TAB' expands to /Volumes/MyDrive/Src) – Slomojo Aug 30 '11 at 23:17
+1 for prezto. I love the approach of using git submodules. – Acorn Mar 23 '13 at 2:00
Also check out – Slomojo Dec 31 '13 at 3:35
Prezto is much faster than oh-my-zsh. You should try it. – Rnhmjoj Sep 16 '14 at 15:33

bash-it (Free)

An alternative to oh-my-zsh (see above). A really useful collection of scripts, aliases and functions for bash. Also provides a nice plugin system for adding your own additions.

share|improve this answer

Bwana (Free)

Not technically a terminal command but very handy for quick manpage lookups by allowing url of: "man:ls" to show html page of the manpage in your browser.

share|improve this answer

Autojump (free)

Great command line utility that stores cd commands and automatically creates an autocomplete shortcut to your most accessed directories.

Even better, if several directories have a similar name (starting with the same characters), Autojump will simply pick the one you most commonly go to. You won't have to type the whole name.


cd project1

j p will now take you straight to the full project1 path.

Now what if you create a similar folder called project2 which you also access often (but less than project1), Autojump will assign a lesser weight to project2 and take you straight to project1.

If you hit TAB after typing "pro" for instance, your shell will display project__, hinting at the fact that there are more than 1 matching directory. Another TAB hit will display the list of matching directories and allow you to select the one you mean.

Note: I've recently installed ZSH and noted some interference due to the autocomplete features. Autojump works perfectly on a vanilla Terminal.

share|improve this answer
While using zsh just try cd -[TAB] see how you get on. – Slomojo Dec 31 '13 at 3:39
@Slomojo That's different; jumping goes into hierarchies with out intermediate steps. Unless there's a zsh feature I'm missing that does this (very possible I'm missing something). – Dave Newton May 8 at 14:18

Ack (Free)

Great for searching text files, you'll never have to use a find/grep combination again.

Ack has two nice integration plugins for major OSX text editors:

share|improve this answer
+1 Ack is such an awesome grep replacement, if it wasn't for the fact that grep is in my muscle memory, I'd never use it at all. – Slomojo Aug 30 '11 at 23:13
Ack is a must have tool, makes grep developer friendly, but this one is a bit off-topic since it is not related to OSX, editing this answer to add Vim/AckMate information. – Vincent Sep 6 '11 at 13:28
grin is also a good alternative. – Gerald Kaszuba Oct 25 '12 at 21:13
grin is wonderful, here's the link: – Lorin Hochstein Nov 14 '12 at 3:55
These days, it’s all about The Silver Searcher. – Zev Eisenberg Oct 25 '13 at 21:28

DTerm (Free) by Decimus Software

Similar to Visor, but with some extra friendly features (also appears to be in active development)

share|improve this answer


is an interesting utility. It describes itself as:

a system-wide terminal on a hot-key

Quite cool. It drops down a terminal on the press of a key-combination.


Visor has been renamed to TotalTerminal... (see other answer, this could/should be deleted)

share|improve this answer
fyi, I switched from Terminal to iTerm2, which has a native visor like feature, and much much more like splitpanes! :) – Vincent May 7 '11 at 10:04

TotalTerminal (Free)

Tabs, visor, hotkeys, very simple and reliable. Well maintained with frequent updates.


share|improve this answer


The MacPorts Project is an open-source community initiative to design an easy-to-use system for compiling, installing, and upgrading either command-line, X11 or Aqua based open-source software on the Mac OS X operating system.

Many people will tell you don't use macport, use homebrew instead. That is mostly true, homebrew is lighter and easier to use. But macports offers way more packages, and some of them will never come to homebrew, because of their different philosophy. (I use both, for different needs)

For example, I recommend GTK in its quartz (native OSX) variant :

sudo port install gtk2 +no_x11+quartz

Then when you install a package that can benefit from it, like wireshark... You will get a native OSX UI, faster and looking much better than X11...

share|improve this answer

MTR (Free) by BitWizard - combines ping and traceroute

Installation: brew install mtr --no-gtk

                                            Packets               Pings
 Host                                     Loss%   Snt   Last   Avg  Best  Wrst StDev
 1.                         0.0%    32    0.5   1.7   0.3  17.6   3.8
 2.           0.0%    32    0.5   1.1   0.3  17.8   3.1
 3.     0.0%    32   97.4 105.7  96.9 187.7  22.0
 4.         80.0%    31  100.8 100.2  99.6 100.8   0.4
 5.                          0.0%    31  100.3 108.0 100.0 210.4  24.3
 6.                         0.0%    31  111.9 112.6 111.7 118.6   1.2
 7.                          0.0%    31  119.8 112.7 111.6 119.8   1.9
 8.                        16.1%    31  112.0 117.0 111.8 125.2   5.1
 9.                   0.0%    31  112.0 112.3 111.6 116.4   0.8

whatmask (Free) by Laffey Computer Imaging - IPv4 subnet calculator

Download OS X binary. Also online.

$ whatmask

IP Entered = ..................:
CIDR = ........................: /22
Netmask = .....................:
Netmask (hex) = ...............: 0xfffffc00
Wildcard Bits = ...............:
Network Address = .............:
Broadcast Address = ...........:
Usable IP Addresses = .........: 1,022
First Usable IP Address = .....:
Last Usable IP Address = ......:
share|improve this answer
nice, but a bit off-topic, not really OSX related :) – Vincent Sep 6 '11 at 13:22
wow, that thing is amazing. thx for sharing – jupp0r Mar 29 '12 at 3:06
How do you run mtr? No matter what i run even if I want to find out help or version I get unable to get raw sockets – AntK Nov 19 at 18:41
You can run it with sudo mtr or setuid the binary with chown root:admin /usr/local/sbin/mtr && chmod +s /usr/local/sbin/mtr. – Ingmar Hupp Nov 27 at 15:37

Lunchy (Free)

A friendly wrapper for launchctl. Start your agents and go to lunch!

A convenient tool to manage (start/stop/restart) OSX services/daemons...

That's a ruby gem: gem install lunchy

share|improve this answer

Solarized (Free)

Color scheme for Terminal.

Lion supports ANSI colors so hack-y things like SIMBL are no longer required.

For Snow Leopard and earlier, you'll need SIMBL installed to make the most of it since color support in is limited.

share|improve this answer
fyi, its vim version comes with janus ;) – Vincent May 7 '11 at 10:03
Solarized for Lion Terminal doesn't look quite right for me -- the colors are off compared to Vim and iTerm. Anyone encountered this? – yjsoon Aug 29 '11 at 6:41
@yjsoon forget Lion Terminal, use iTerm2... – Vincent Aug 30 '11 at 7:54
@Vincent I liked iTerm2... until Lion Terminal came out, and could open new tabs in the same directory as the current tab, and greyed out history. Waiting for iTerm to get those. – yjsoon Sep 5 '11 at 15:21
@yjsoon I would not be surprise that you can get this behavior with some oh-my-zsh plugins... or with a bit of scripting ;) omz ftw! – Vincent Sep 6 '11 at 13:15

ProfontX (Free)

My favorite programming and terminal font on MacOS. (ProfontX is a corrected version of Profont which had issues with some characters)

share|improve this answer
Nice font, thanks, didn't knew that one, will give it a try, even if I guess I'll finally fallback to that good old Monaco (which renders great in iTerm2) – Vincent Aug 30 '11 at 10:29
Monaco won, better readability for my eyes :), would love to switch to modern Menlo, but its special UTF-8 characters like ✭ are too small for shell pleasure. – Vincent Sep 6 '11 at 13:38
definitely a matter of taste ;), there's something about monaco i just can't stand, it's just too crispy to my taste I guess – apouche Sep 6 '11 at 14:05
oh yeah, definitely a personal choice. Dunno if there is not already one, but a community wiki exclusively about fixed-size dev fonts for OSX would be nice... ;) – Vincent Sep 6 '11 at 17:26

lolcat (Free)


share|improve this answer
Surely the most useful terminal tool, evah! (After cowsay and figlet that is.) – Slomojo Aug 30 '11 at 4:00
Clearly the reason 256-color support was addd to Lion Terminal. – Chris Page Sep 4 '11 at 9:42
nice one (lol) but a bit off-topic, not really OSX related – Vincent Sep 6 '11 at 13:26
Who cares ? =) It is a nice tool ! – Matthieu Riegler Jan 8 '14 at 16:42
Most useful install ever. – Jan Sep 21 at 9:23

iTerm2 (Free)

Mentioned in comments, but it's essential, so for emphasis...

share|improve this answer
Seriously, forget OSX Terminal + Visor, iTerm2 is so much better, I'm splitting panes all day in full screen with a hotkey à la visor... There are also many other wonderful features... – Vincent Aug 30 '11 at 7:51
Strangely, it hasn't had an update of the stable release since July 2011, and a beta came out in July 2012 which never got promoted. Is this project dead? – Yar Oct 12 '12 at 23:30
@Yar it's still being developed. The author maintains the official repo here: – mh. Dec 4 '12 at 5:21

Janus + macvim

Janus is a basic distribution of vim plugins and tools intended to be run on top of the latest MacVIM snapshot

install macvim with homebrew brew install macvim and follow the (easy) janus instructions, and you are set with a powerfull text editor that has been pre-configured for you by brilliants minds. The learning curve of vim is scary at first sight, but once you are confortable with it, you'll never go back (or maybe to emacs...) (fyi, TextMate has been abandoned to its profit by many coders)

That might sounds strange, but I prefer using vim in iTerm2 than macvim... (vim is bundled in macvim, just use brew install macvim --override-system-vim)

share|improve this answer

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