现在,每个以空格字符开头的命令都会被 bash 历史记录 ( HISTCONTROL=ignoreboth
in ~/.bashrc
)忽略。
当我在提示输入字段中按空格作为第一个字符时,我希望有更好的视觉提示。
那么有没有办法在bash提示符中添加这样的东西呢?
例如,当它注意到您按空格作为输入字段的第一个字符时,您会为提示的一部分着色(因为显然对输入字段中的其他空格字符做出反应是愚蠢的)。
我正在尝试在 Terminator 上获取 Terminus 字体,并且我已经执行了以下操作:
我认为将字体放在正确的位置:
??? tree -a .local/share/fonts/
.local/share/fonts/
??? Hack
? ??? Hack-BoldOblique.otf
? ??? Hack-Bold.otf
? ??? Hack-RegularOblique.otf
? ??? Hack-Regular.otf
??? Inconsolata
? ??? Inconsolata.otf
??? SourceSansPro
? ??? SourceSansPro-BlackIt.otf
? ??? SourceSansPro-Black.otf
? ??? SourceSansPro-BoldIt.otf
? ??? SourceSansPro-Bold.otf
? ??? SourceSansPro-ExtraLightIt.otf
? ??? SourceSansPro-ExtraLight.otf
? ??? SourceSansPro-It.otf
? ??? SourceSansPro-LightIt.otf
? ??? SourceSansPro-Light.otf
? ??? SourceSansPro-Regular.otf
? ??? SourceSansPro-SemiboldIt.otf
? ??? SourceSansPro-Semibold.otf
??? Terminus
??? terminus-12.pcf
??? terminus-14-bold.pcf
??? terminus-14.pcf
??? terminus-16-bold.pcf
??? terminus-16.pcf …
Run Code Online (Sandbox Code Playgroud)