nixos/home/fish/config.fish
2024-07-07 15:49:28 -07:00

20 lines
631 B
Fish

set -U fish_greeting
if status is-interactive
# Commands to run in interactive sessions can go here
bind \cG lazygit
end
function fish_user_key_bindings
# Execute this once per mode that emacs bindings should be used in
fish_default_key_bindings -M insert
# Then execute the vi-bindings so they take precedence when there's a conflict.
# Without --no-erase fish_vi_key_bindings will default to
# resetting all bindings.
# The argument specifies the initial mode (insert, "default" or visual).
fish_vi_key_bindings --no-erase insert
bind \cf 'fg 2>/dev/null; commandline -f repaint'
end