随着 Mac 下终端的使用日益增多,系统默认的 bash 已经知足不了需求了,因而有了更为强劲的 fish 和 zsh,以及它们各自的强心剂 Oh-My-Fish 和 Oh-My-Zsh. 个人选择是 Fish 和 Oh-My-Fish。html
到目前为止,最新的 fish 2.2.0 于 2015 年 7 月 12 日发布,Release notes 以下 http://fishshell.com/release_notes.html,其中显著改变有:git
Abbreviations: the new `abbr` command allows for interactively-expanded abbreviations, allowing quick access to frequently-used commands (#731).github
Vi mode: run `fish_vi_mode` to switch fish into the key bindings and prompt familiar to users of the Vi editor (#65).web
New inline and interactive pager, which will be familiar to users of zsh (#291).shell
Underlying architectural changes: the `fishd` universal variable server has been removed as it was a source of many bugs and security problems. Notably, old fish sessions will not be able to communicate universal variable changes with new fish sessions. For best results, restart all running instances of `fish`.bash
The web-based configuration tool has been redesigned, featuring a prompt theme chooser and other improvements.session
New German, Brazilian Portuguese, and Chinese translations.ui
我对第二点比较感兴趣,即增长了 vi 模式,在 fish 下运行 fish_vi_mode
命令,或者在 ~/.config/fish/config.fish
中加上 fish_vi_mode
便自动进入 vi 模式。 阅读全文 >>spa