我使用Centos 6.3并使用以下命令定制了我的.bash_profile以帮助完成历史logging(并着色提示):
bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward' bind '"show-all-if-ambiguous on"' bind '"set completion-ignore-case on"' export PS1="[\[\e[32;1m\]\u@\h \[\e[33;1m\]\W\[\]]\[\e[37;1m\]\$ " [ -z "$PS1" ] && return shopt -s checkwinsize
现在,在命令提示符下,当我input任何带有“s”字符的单词时,在按空格键或继续input之前,我看不到字符。 我该如何解决这个问题?
您需要从两个bind命令中删除多余的引号,并将set指令添加到其中的一个:
bind 'set show-all-if-ambiguous on' bind 'set completion-ignore-case on'