解决 ubuntu apt-get TAB 键不能自动补全
来源:互联网 发布:windows添加或删除组件 编辑:程序博客网 时间:2024/05/16 17:53
Add Bash Completion In Debian
ash completion is a useful tool for completion of file paths, commands etc. By default it is enabled on Ubuntu but not on Debian. With two simple steps it can also be enabled on Debian.
1. Install bash-completion
First of all we need the install the according package:
apt-get install bash-completion
2. Add it to the bash profile
Either edit the ~/.bash_profile file to enable it only for a given user or edit /etc/profile to add it system-wide. Add the following code:
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
3. Try it
In order for it to work you have to log out and relogin and then you can make use of bash completion the usual way. E.g. issue:
apt-g
and then press the TAB key once and the command will be completed to apt-get. Or issue this:
apt
and then press TAB key twice. You can also try with
apt-get install apa
and then press TAB key once to complete as far as possible and a second time to list all options.
- 解决 ubuntu apt-get TAB 键不能自动补全
- ubuntu 14.04 apt-get install 不能自动补全解决办法
- Ubuntu系统Tab键不能自动补全问题解决
- ubuntu tab键不能自动补全命令的参数
- ubuntu终端Tab键不能自动补全
- apt-get自动补全
- linux下tab自动补全, redhat没有apt-get命令
- 解决 debian TAB 键不能自动补全命令的原因
- ubuntu 不能自动补全
- Ubuntu14.04系统Tab键不能自动补全问题解决
- linux tab 不能自动补全 上下键乱码
- ubuntu tab键命令不能补全的问题
- ubuntu sudo命令tab自动补全
- apt自动补全
- 解决linux终端按tab不能自动补全的问题
- vim tab键自动补全
- vim tab键自动补全
- python tab键自动补全
- 杨辉三角
- CSS如何控制页面样式
- Android裁剪图片最简单方法
- ncp是否需要锁
- 游戏远程代码注入和动态连接库的使用
- 解决 ubuntu apt-get TAB 键不能自动补全
- org-mode导出pdf文件
- 关于oracle优化实战
- 关于电子邮件的正则表达式
- 爱
- 栈内存与堆内存
- xcode4总是不响应
- sizeof
- 用存储过程通过传入参数动态创建视图