Custom Key Bindings
suggest changeWith the bind command it is possible to define custom key bindings.
The next example binds Alt+w so that it inserts >/dev/null 2>&1:
bind '"\ew":" >/dev/null 2>&1"'
If you want to execute the line immediately, add \C-m (Enter) to it:
bind '"\ew":" >/dev/null 2>&1\C-m"'
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents