Skip to content

Instantly share code, notes, and snippets.

@connectthefuture
Created February 20, 2017 14:40
Show Gist options
  • Save connectthefuture/d7ce306a131230e28e092df845f36f4e to your computer and use it in GitHub Desktop.
Save connectthefuture/d7ce306a131230e28e092df845f36f4e to your computer and use it in GitHub Desktop.
BASH TO FISH

https://raw.githubusercontent.com/mockra/mockra.github.com/9d68abb475caec06ec88138c56c7b1584d368a63/_posts/2014-09-27-bash-to-fish.md


layout: post title: Bash to Fish Shell

I've recently switched back to fish from bash, and been pretty happy with the change. Fish provides a variety of additional features over bash, but its main benefit is ease of use. Despite trying several recommended setups with zsh and bash, I've found fish's auto complete to fit my needs the best.

fish shell

Getting fish setup on your machine is fairly straightforward. If you're on OS X, I've found the easiest approach is using homebrew. You can install fish by running the following command:

brew install fish

I would then recommend setting up oh-my-fish, which provides several useful plugins and themes. Installing oh-my-fish can be done by running:

curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.fish | fish

In order to migrate your ~/.bashrc file to ~/.config/fish/config.fish, you'll need to update some of your syntax.

export GOPATH=$HOME/dev/go -> set -x GOPATH $HOME/dev/go

source ~/.shenv -> . ~/.shenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment