Bash 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.
相关推荐
采用Go编写的bash completion 命令行的bash completion。bash completion written in go bash completion for go command。
Laravel开发-artisan-bash-completion 为Laravel 5.5 Artisan CLI添加bash completion。
在centos6或rhel6 操作系统安装bash-completion-2.1-6.el7.noarch.rpm后,重启即生效
bash-completion, bash的可编程完成功能 bash完成 安装安装这个软件最简单的方法是使用包;它在许多操作系统发行版中都可用,下面列出了一些示例。 软件包的NAME 通常是bash完成。 根据包,你可以能仍然需要从 /etc/
离线安装包,测试可用
重击完成介绍bash-completion是的命令行命令集合,辅助创建新的辅助功能的集合,以及用于按需自动加载和安装补全的工具集。安装安装此软件的最简单方法是使用软件包。 有关操作系统发行版,软件包名称和可用版本的...
centos6的yum源里面没有bash-completion的包,需要单独下载安装。centos7的yum源里面已包含此安装包,可以通过yum直接安装。 **安装步骤** 1、rpm -ivh bash-completion-1.3-7.el6.noarch.rpm (如有依赖报错,请按照...
.git-completion.bash
命令补全 Centos6/7或Rhel6/7 安装 bash-completion-2.1-6.el7.noarch.rpm 后重启即生效
在类似Debian的系统中设置bash。 要求 没有任何 变数 bash_bashrc_destinations [默认值: {skell: dest: /etc/skel, current: dest: "{{ ansible_env.HOME }}"} ]:将bashrc文件复制到的目标 bash_bashrc_...
开源项目-thomasf-go-bash-completion.zip,Fork of (deleted) go/misc/bash/go bash completion with package list cache
git-completion.bash,用于补全git的命令,来自git源码目录,使用方法见博客:https://blog.csdn.net/weixin_39228381/article/details/109363881
bash quick reference in English
virsh-bash-完成 用于 libvirt virsh 命令的 Bash 选项卡完成脚本 使用方法:将 virsh-bash-completion 文件复制到 /etc/bash_completion.d/ 然后重启 bash。
官方离线安装包,亲测可用
安装要安装此 bash 完成脚本,在大多数安装了 Bash Completion 的系统上,将openwrt_make复制到/etc/bash_completion.d/或将其添加到.bashrc文件应该就足够了。模式选择openwrt-bash-completion 可以在两种模式下...
maven-bash-completion, Maven Bash自动完成 Maven Bash完成默认情况下,Maven 不发布Bash自动完成脚本,只使用一个非常简单的指南插件。 这里脚本为你提供了更多帮助你日常 Maven 构建的脚本。演示 安装手动安装...