本人清华同方L860-T1最近失去debian最新官方支持了,只得清除重装回bookworm。操作期间遇到里需要在tty界面下进入中文目录 的问题,试了试,fbterm和zhcon都无法正常在这台机器上工作,推测是不支持frame buffer方式驱动。只得采取以下方式。
一、安装kmscon,以显示中文
sudo apt install kmscon
注销重新登陆。
二、增加按键选择文件功能
网上搜得:
Assuming you are using bash, either add the following to your ~/.bashrc
bind '"\e[6~": menu-complete'
bind '"\e[5~": menu-complete-backward'
Or to change the defaults for all programs that use the readline completion library, not just bash, create the file ~/.inputrc containing:
$include /etc/inputrc
"\e[6~": menu-complete
"\e[5~": menu-complete-backward
Now when you open a new terminal, you can press:
TAB as normal to see available completions.
Pg Dn to select the first completion or change to the next one.
Pg Up to select the last completion or change to the previous one.
Alt+n Pg Dn to select the nth completion or move forward n completions.
So for your example type Pg Dn Pg Dn or Alt+2Pg Dn to get the second file aww.txt.
至此,可曲线完成目标。
评论0
暂时没有评论