I want to unmap (unbind) certain keys such as Up, Down, Left, Right, Page Up, Page Down, Home, End specifically in the fish shell.
I guess I have to use the
bind command in the
.config/fish/fish.config file, but I am not sure how.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You will need to define a custom
fish_user_key_bindings function with the appropriate
bind --erase statements, then save that function with
funcsave or by editing
function fish_user_key_bindings bind --erase --key up bind --erase --key down # and so on end funcsave fish_user_key_bindings
Note that some terminals don't send the terminal codes that their terminal description files say they do - you may need to use
fish_key_reader (introduced in 2.3.1) to confirm the exact binding you need to erase.