$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.

Examples

Trim hello worlds to hello world with the help of $KEYBOARD_HACK
1
2
KEYBOARD_HACK=s
echo hello worlds # 's' is removed because of KEYBOARD_HACK
Output:
1
hello world
BashSupport Pro 是一款支持 keyboard_hacks** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款