Ubuntu bash auto completion and suggestion for command not found

来源:互联网 发布:sql查密码 编辑:程序博客网 时间:2024/05/20 00:53

1. auto completion

修改/etc/bash.bashrc或者~/.bashrc。去掉bash completion的注释。

# enable programmable completion features (you don't need to enable# this, if it's already enabled in /etc/bash.bashrc and /etc/profile# sources /etc/bash.bashrc).if [ -f /etc/bash_completion ] && ! shopt -oq posix; then    . /etc/bash_completionfi

2. command not found

sudo apt-get install command-not-found

这样再输入命令时,如果命令或软件没有安装,会提示是不是相关的命令。然后可以按照提示的名字用apt-get install.

 Posted by ian at 20:31
原创粉丝点击