• Mac 使用 brew 安装

$ brew install fish
$ echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
$ chsh -s /usr/local/bin/fish
  • Mac 源码安装

$ git clone https://github.com/fish-shell/fish-shell ~/src/fish
$ cd ~/src/fish
$ xcodebuild install
$ ditto /tmp/fish.dst /
$ echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
$ chsh -s /usr/local/bin/fish
  • Ubuntu apt-get 安装最新版

$ sudo apt-add-repository ppa:fish-shell/release-2
$ sudo apt-get update
$ sudo apt-get install fish
$ chsh -s /usr/bin/fish




	$ curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | fish
omf help