I have a whole bunch of aliased commands in
The most generic examples are
alias apt-update="sudo apt-get update" alias apt-upgrade="sudo apt-get dist-upgrade"
but then I also have
alias apt-install="sudo apt-get install " alias a2avail="/etc/apache2/sites-available"
The first two are no issue, The second two I want to make the more powerful;
apt-install I want autocomplete to work.
for a2avail I want to be able to type something like
sudo cp a2avail/default a2avail/new and have it run as
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/new
are either of these two things possible?