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

Huh? It just hangs. Sadface.

The quick workaround: Install from source.

# fetch
# 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!