Installing Fish Shell
As a Unix user for the past 3 years I’ve grown to love command line shells. In search for new tools to help me, I discovered Fish Shell. A smart and user friendly command line shell that goes where few command line shells have ventured before.
Fish observes your behaviour and suggets commands you might want to execute. Finally, a command line shell with Autocomplete!
Some of the key features that Fish has, include command suggestion and completion based on you command history (much like Autocomplete on most IDEs). It supports completions from parsing your installed man pages. And Most importantly, it works right out of the box and includes full VGA color support.
Installing Fish Shell on Mac OSX - Yosemite
There are multiple ways to install Fish. The easiest way is through the Homebrew package manager. If you don’t have Homebrew installed, I advise you install it as it saves lives (and time for that matter).
Install Fish like you would any other homebrew package
brew install fish
Add Fish to /etc/shells
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
If you would like to make Fish your default shell (highly recommend!)
chsh -s /usr/local/bin/fish
Finally get rid of the boring Fish welcome message and add your own.
Create the directory
mkdir -p ~/.config/fish
Create a config.fish file
Create your own custom greeting or simply leave it blank
echo "set -g -x fish_greeting 'Hello Master!'" >> ~/.config/fish/config.fish
To see your current Fish Configuration execute
… And that’s it!
For information check out the fish shell docs.