解决 ubuntu apt-get TAB 键不能自动补全
2011-04-13 17:48
537 查看
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.
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 14.04 apt-get install 不能自动补全解决办法
- Ubuntu14.04系统Tab键不能自动补全问题解决
- Ubuntu系统Tab键不能自动补全问题解决
- ubuntu tab键不能自动补全命令的参数
- ubuntu终端Tab键不能自动补全
- 解决 Ubuntu 10.04 server 的Tab自动补全失效的方法
- Ubuntu 下无法Tab键自动补全功能解决办法
- Ubuntu 16.4中root不能使用tab键来补全命令的解决方法
- Ubuntu 16.04 apt-get无法自动解决依赖的解决方法
- 解决 debian TAB 键不能自动补全命令的原因
- 解决linux终端按tab不能自动补全的问题
- windows远程桌面ubuntu中Tab键不能补全命令的解决办法
- 解析ubuntu tab键不能自动补全命令的参数
- VNC中Tab键不能实现命令自动补全解决方法
- iOS开发中导入第三方库时不能自动补全头文件的解决方法
- Ubuntu apt-get "Hash Sum mismatch" 问题解决方法
- 解决ubuntu的apt-get命令被占用
- ubuntu apt-get /usr/bin/dpkg returned an error code 的解决办法
- Java中A\t+/不能自动补全的解决办法
- Ubuntu下解决USB不能自动识别问题