原文鏈接(點它)或者:http://how-to.cc/fix-bash-command-line-completion
如果使用vnc 遠程登錄xfce 桌面,結果shell 裏的auto-completion 用不了(其實是用ctrl+tab),
可以按以下方法暫時修復。
首先要修改 .bashrc 文件,這個文件的最後幾行大概是這個樣子:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
刪除這幾行之前的註釋符號,並把它們改成
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
也就是刪掉了判斷中的&& ! shopt -oq posix
如果 是ubuntu 或者 debian的話,
接下來還要修改~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
將這個文件中的
<property name="<Super>Tab" type="string" value="switch_window_key"/>
改成
<property name="<Super>Tab" type="empty"/>
再登錄就可以啦