转自:http://blog.csdn.net/seasonkky/article/details/6321150
现象:
bash的一般命令补全正常,apt-get install 的包名无法自动补全
解决:
实际上,在运行这句后,就可以自动补全了。。。

apt-get install bash-completion

原文:
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

  1. 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.

apt-get 自动补全包名相关推荐

  1. eclipse代码自动提示设置、如何配置eclipse的代码自动提示功能(同时解决自动补全变量名的问题)?

    eclipse代码自动提示设置.如何配置eclipse的代码自动提示功能(同时解决自动补全变量名的问题)? 参考文章: (1)eclipse代码自动提示设置.如何配置eclipse的代码自动提示功能( ...

  2. Linux 命令自动补全包bash-completion

    如果按TAB键不能自动补全诸多命令 如 disable.start等,则需要安装bash-completion包 yum -y install bash-completionbash # 使其生效

  3. linux 命令自动补全包

    linux 其他知识目录 rhel7如果使用最小化安装后,tab键默认是不能自动补全命令的 执行yum install bash-completion之后重启系统正常. 转载于:https://www ...

  4. Docker自动补全容器名

    Zsh Place the completion script in your /path/to/zsh/completion (typically ~/.zsh/completion/): 下载自动 ...

  5. HeidiSQL自动补全表名快捷键设置

    经过设置,表名可以提示选择,字段名好像无效,显示的列表选择是空的

  6. 解决Eclipse自动补全变量名的问题

    原文地址: https://blog.csdn.net/czh500/article/details/53162157 转载于:https://www.cnblogs.com/qiaoyutao/p/ ...

  7. 彻底解决Eclipse自动补全变量名问题的方法步骤

    https://www.cnblogs.com/w-wfy/p/5861274.html

  8. Linux 基础命令包以及table自动补全包

    yum list bash-completion* yum -y install vim wget curl yum-utils bash-completion bash-completion-ext ...

  9. Sublime Text 3 import Anaconda 无法正常补全模块名解决办法

    Sublime Text 3 Anaconda配置 在安装Sublime Text3之后我们总会安装一些插件,比如Python的Anaconda自动补全插件.但是,装好之后发现import 时无法像别 ...

最新文章

  1. 如果知道一个控件类型的对话框句柄是编辑框控件
  2. C语言 字符串的读取
  3. Android_Exynos4412_iROM_Secure_Booting_Guide_Ver.1.00.00
  4. Objective-C学习之解析XML
  5. 一文搞懂一致性hash的原理和实现
  6. 非网管交换机和网管交换机的区别
  7. c 将txt导入oracle,如何把文本数据导入Oracle中?
  8. mysql 逆序排序_将一组乱序的字符进行排序进行升序和逆序输出
  9. cocos2dx arm64 jpg格式的不显示_相机保存照片你选RAW还是JPG?这里面大有讲究
  10. 【报告分享】2020中国后浪生存图鉴.pdf(附下载链接)
  11. 扫码点菜系统代码_餐厅点餐只能选择“桌上扫码”?点餐方式岂能“一刀切”...
  12. BGP-13 配置BGP多路径发布
  13. 2017年计算机类核心期刊,2017年北大版中文核心期刊要目总览目录.pdf
  14. Springboot创建webService接口时的cxfconfi文件报错出现DispatcherServletPath不能找到
  15. 图像处理经典算法及OpenCV程序
  16. 终于有人把“教育内卷”讲明白了
  17. arm板gdb调试移植
  18. BZOJ 4567: [Scoi2016]背单词
  19. 软件设计证书倒数50天-软件工程重要的证书
  20. 什么是CAD的模型和布局?

热门文章

  1. 解决liquibase.exception.LockException: Could not acquire change log lock. Currently locked by XXXX
  2. flink学习之sql-client之踩坑记录
  3. 最简单实现微信活动报名功能,只要将我的微信号拉入群(续)
  4. 11月1日-PPT第九套练习题
  5. 使用 icsp 烧程序
  6. 下列选项html标记错误的是,网站美工设计师认证模拟练习题(二)
  7. 大厂 | 入职前的「背景调查」,到底在查什么?
  8. php输出英文时间日期格式,PHP使用函数gmstrftime、gmdate输出英文时间日期的安全方法(RFC 1123格式)...
  9. 量子笔记:多量子系统、叠加、量子计算并行处理能力
  10. 一款聚合音乐播放器,可播放很多音乐资源,开源且完全免费。