~gpanders/dotfiles

ref: 5629911cfe9a2fc4e566bab14373aec451244000 dotfiles/fish/.config/fish/functions/fish_user_key_bindings.fish -rw-r--r-- 588 bytes
5629911cGreg Anders Fix bash syntax error in 'note' command 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function fish_user_key_bindings
    bind -M insert ! __history_previous_command
    bind -M insert '$' __history_previous_command_arguments

    bind \ef nextd-or-forward-word
    bind -M insert \ef nextd-or-forward-word

    bind \eb prevd-or-backward-word
    bind -M insert \eb prevd-or-backward-word

    bind \ew __fish_whatis_current_token
    bind -M insert __fish_whatis_current_token

    bind \es __fish_prepend_sudo
    bind -M insert \es __fish_prepend_sudo

    bind \ct __fzy
    bind -M insert \ct __fzy

    bind \cr __fzy_history
    bind -M insert \cr __fzy_history
end