fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9367d4ff7
master
1function fish_hybrid_key_bindings --description"Vi-style bindings that inherit emacs-style bindings in all modes" 2bind --erase --all --preset# clear earlier bindings, if any 3 4if test " $fish_key_bindings " != fish_hybrid_key_bindings 5# Allow the user to set the variable universally 6set -q fish_key_bindings 7or set -g fish_key_bindings 8# This triggers the handler, which calls us again and ensures the user_key_bindings 9# are executed. 10set fish_key_bindings fish_hybrid_key_bindings 11return 12end 13 14for modein default insert visual 15fish_default_key_bindings -M$mode 16end 17fish_vi_key_bindings --no-erase 18end