cubieboard ubuntu 默认没有增强自动补全,用起来真难受。
sudo apt-get install bash-completion
修改 /etc/bash.bashrc文件,去掉下面内容的注释
1 2 3 4 5 6 7 8 | # enable bash completion in interactive shells if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi |
然后 source /etc/profile 一下就可以了。
看了一下,发现 ~/.bashrc 下面就有启动增强自动补全的代码,也就是只用安装 bash-completion 就可以了。