为Debian/Ubuntu的apt-get install添加自动补齐/完成功能

Debian/Ubuntu的apt-get太常用了,不过偶尔可能也会碰到不太熟悉,想不起来的包的名称,除了去debian packages去查找,另外的方法就是给Debian/Ubuntu添加自动补齐/完成功能。方法如下:

1、安装bash-completion

apt-get install bash-completion

2、编辑~/.bashrc 文件

添加如下内容:

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

3、使其生效

退出SSH,重新登录。

apt-get install build-e  然后TAB一下,自动补齐了吧。

好久不写东西了,都荒草丛生了。

原文:http://blog.licess.com/debianubuntu-apt-get-install-autocompletion/

时间: 2024-07-31 00:23:33

为Debian/Ubuntu的apt-get install添加自动补齐/完成功能的相关文章

vim里添加自动补齐插件,与python 函数补齐

参考  http://www.jb51.net/article/58009.htm 将 # cat ~/.vimrc filetype plugin on let g:pydiction_location = '~/.vim/tools/pydiction/complete-dict' 实现按下tab补齐python函数 Autocomplpop 插件安装实现自动提示 原文地址:https://www.cnblogs.com/xxxxbai/p/9027717.html

linux环境下给python添加tab自动补齐

Pthon开发环境有很多种,可以使用IDE环境,比如eclipse,charm.也可以在linux下使用ipython,使用ipython就是因为有自动补全功能.当然也可以在linux环境下使用原生的python添加Tab补齐,也就实现了ipython的功能. 只需要在python的包路径中添加tab补齐模块即可. [[email protected] ~]# cd /usr/lib64/python2.7/ [[email protected] python2.7]# vim tab.py t

ubuntu 14.04 vim YoucompleteMe 代码自动补全工具安装

安装步骤如下: sudo apt-get install vim ; sudo apt-get install vim-youcompleteme ; sudo apt-get install vim-addon-manager ; vam install youcompleteme .

【随笔】eclipse cdt 添加自动补全功能

自动代码补全完全是一个改善生活质量的功能呀!cdt拥有自动代码补全功能,只是我们没有打开而已 1. 绑定快捷方式 1. windows -> preferences ->general->keys  在搜索框输入  template 然后在binding 中输入 alt+/ 2. 开启自动填充功能 windows -> preferences -> c/c++ -> editor -> templates 将最下面的 user code formatter 勾选上

eclipsecdt添加自动补全功能

自动代码补全完全是一个改善生活质量的功能呀!cdt拥有自动代码补全功能,只是我们没有打开而已 1. 绑定快捷方式 1. windows -> preferences ->general->keys 在搜索框输入 template 然后在binding 中输入 alt+/ 2. 开启自动填充功能 windows -> preferences -> c/c++ -> editor -> templates 将最下面的 user code formatter 勾选上.

python命令行添加自动补全和命令历史功能

# python startup file import readline import rlcompleter import atexit import os # tab completion readline.parse_and_bind('tab: complete') # history file histfile = os.path.join(os.environ['HOME'], '.pythonhistory') try: readline.read_history_file(hi

Debian/Ubuntu源码编译安装PHP--支持FastCGI

从 php 5.3.3 起,就可直接使用 PHP-FPM ,不再需要打补丁了.此前已写过<Linux 从源码编译安装 PHP 5> 见 http://www.linuxidc.com/Linux/2011-10/45743.htm,但是以 mod_php 模块方式,而非 FastCGI 模式运行 php ,并不适用于 Lighttpd.Nginx.LiteSpeed ,而且当时对所有模块都采用编译安装也显得过于繁琐. 一.什么是 FastCGI.PHP-FPM.FastCGI ? CGI是一种

debian配置----&gt;/etc/apt/sources.list apt基本源设置指南

关于: 管理Linux服务器的运维或开发人员经常需要安装软件,最常用方式应该是通过Linux系统提供的包管理工具来在线安装,比如centos的yum,ubuntu或debian的apt-get.当然这些工具使用之前需要配置好yum源或apt源. 配置文件: centos配置---->/etc/yum.repos.d/xxx.repo debian配置---->/etc/apt/sources.list 指南: 国内有不少优秀的镜像源服务器,比如mirror.bit.edu.cn(北京理工大学)

Debian/Ubuntu/CentOS VPS安装Net-Speeder并优化

安装过程: CentOS安装 wget --no-check-certificate https://gist.github.com/LazyZhu/dc3f2f84c336a08fd6a5/raw/d8aa4bcf955409e28a262ccf52921a65fe49da99/net_speeder_lazyinstall.shsh net_speeder_lazyinstall.sh 安装完毕后再敲入:nohup /usr/local/net_speeder/net_speeder ven