I have many aliases that I created in my .bash_aliases
file, and they are very useful, so if I want all info on a package I do something like:
allinfo software-center
And that does the equivalent of:
apt-cache show software-center
As the alias is set as:
alias allinfo='apt-cache show'
But there is one disadvantage of this, I am currently unable to autocomplete with TAB when using allinfo
instead of the actual command. So I was wondering if there was a way to overcome this disadvantage and make it so that doing allinfo software-ce[TAB]
will work just the same as it does when you use it with the actual command, and not just make a large tab space?
I am using gnome-terminal
.
OS Information:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid
Package Information:
gnome-terminal:
Installed: 3.14.2-0ubuntu3
Candidate: 3.14.2-0ubuntu3
Version table:
*** 3.14.2-0ubuntu3 0
500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
100 /var/lib/dpkg/status