$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 worlds
tohello world
with the help of$KEYBOARD_HACK
- Output:
1 2
KEYBOARD_HACK=s echo hello worlds # 's' is removed because of KEYBOARD_HACK
1
hello world
BashSupport Pro ist eine Zsh IDE mit Unterstützung für $KEYBOARD_HACKS - probieren Sie es jetzt aus!