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_completion
fi
2. command not found
sudo apt-get install command-not-found
这样再输入命令时,如果命令或软件没有安装,会提示是不是相关的命令。然后可以按照提示的名字用apt-get install.
本文介绍如何在Linux环境下使用bash自动补全功能,并在未安装命令时提供安装提示,通过修改配置文件来实现。

被折叠的 条评论
为什么被折叠?



