Skip to content

Instantly share code, notes, and snippets.

@nelanka
Last active May 26, 2016 13:56
Show Gist options
  • Save nelanka/73ccc05acff1e5dd4544 to your computer and use it in GitHub Desktop.
Save nelanka/73ccc05acff1e5dd4544 to your computer and use it in GitHub Desktop.
Setup Fish Shell

Setup Fish Shell

Installation

  1. Install fish shell using Homebrew brew install fish
  2. Install Oh-My-Fish framework
curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | fish
omf help
  1. Add /usr/local/bin/fish to your /etc/shells file
  2. Select fish as your default shell chsh -s /usr/local/bin/fish
  3. Your shell config file is ~/.config/fish/config.fish (ex: config.fish)
  4. Change themes and settings using Oh-My-Fish command omf

Optional Installation for using with Vim Package Managers

  1. Have vim use bash since fish isn't POSIX compliant add "set shell=bash" to your .vimrc
  2. Optional: Add vundle update function:
function updatevim
  set -lx SHELL (which sh)
  vim +BundleInstall! +BundleClean +qall
end

vi mode

  • Add the following to your config.fish set fish_key_bindings fish_vi_key_bindings

Fish Tips

  • Aliases functionality is in fish functions.

References

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