$KEYBOARD_HACK
–
Character to remove from end of command line
$KEYBOARD_HACK defines a character which is removed from the command line of
interactive shells before the command is executed.
This is meant to help with keyboards which have a small RETURN key.
Variable $KEYBOARD_HACK is a more general solution to replace the shell option SUNKEYBOARDHACK.
Links
- The Z Shell manual
- The Z Shell manual on option
https://zsh.sourceforge.io/Intro/intro_16.html#IDX227
Examples
- Trim
hello worldstohello worldwith the help of$KEYBOARD_HACK - Output:
1 2KEYBOARD_HACK=s echo hello worlds # 's' is removed because of KEYBOARD_HACK1hello world
BashSupport Pro is a Zsh IDE with support for $KEYBOARD_HACKS – try it now!