fish 2.2.0 (July 12, 2015) 支持 vi 模式

隨着 Mac 下終端的使用日益增多,系統默認的 bash 已經知足不了需求了,因而有了更爲強勁的 fishzsh,以及它們各自的強心劑 Oh-My-FishOh-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

相關文章
相關標籤/搜索