Add binding to fish that not auto executes the string?
Posted
by
NES
on Ask Ubuntu
See other posts from Ask Ubuntu
or by NES
Published on 2011-01-04T15:34:32Z
Indexed on
2011/01/04
15:59 UTC
Read the original article
Hit count: 414
How do i set up a key binding in fish, so that fish understands not to execute the bindingstring after appending it to commandline but just appending it as string to commandline.
I want to set up a binding that appends | less
by pressing i.e. ALT + Y.
It seems that by default fish understands the command to automatically execute.
I.e. When i type ls
on commandline and then would press ALT + Y it only should complete the command to look like this ls | less
but still not executing it.
i'm trying something like this
bind \ey " \| less"
But fish doesn't accept my syntax
© Ask Ubuntu or respective owner