6
rated 0 times
[
6]
[
0]
/ answers: 1 / hits: 2739
/ 2 Years ago, thu, march 3, 2022, 3:25:41
I have a whole bunch of aliased commands in .bash_aliases
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;
Specifically for 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?
More From » command-line