Fish Shell on FreeBSD

The short: I love fish shell! One of the first things I do when I fire up a new Linux box is install fish and set it as my main shell. For some reason I’ve not done this yet on my BSD boxes though, so I tried today:

$ pkg install fish

This got me 2.1.0. But no workie:

# fish
fish:

Huh? It just hangs. Sadface.

The quick workaround: Install from source.

# fetch http://fishshell.com/files/2.1.2/fish-2.1.2.tar.gz
# tar xvf fish-2.1.2.tar.gz
# cd fish-2.1.2
# ./configure LDFLAGS="-L/usr/local/lib -liconv"
# gmake -j 4
# sudo make install

And viola!