敲命令时,自动补全等功能都是GNU Readline库的妙用,还有其他小技巧:
Ctrl-A:回到行首
Ctrl-E:回到行尾
Ctrl-U:清除光标前的命令

https://twobithistory.org/2019/08/22/readline.html