2021-05-17 19:46:52 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# import general use aliases
|
|
|
|
[[ -r ~/.alias ]] && . ~/.alias
|
|
|
|
|
|
|
|
# apt
|
2021-05-26 14:50:04 +02:00
|
|
|
_completion_loader apt
|
|
|
|
alias a="sudo apt"
|
2021-05-17 19:46:52 +02:00
|
|
|
|
|
|
|
alias aql="sudo dpkg -l"
|
|
|
|
alias aqh="sudo apt-mark showhold"
|
|
|
|
|
2021-05-26 14:32:39 +02:00
|
|
|
alias aup="sudo apt update"
|
|
|
|
|
|
|
|
function aupg {
|
2021-05-17 19:46:52 +02:00
|
|
|
sudo apt update;
|
|
|
|
clear;
|
|
|
|
sudo apt list -u;
|
|
|
|
echo;
|
|
|
|
read -p "Upgrade? [Y/n] " choice;
|
|
|
|
case "$choice" in
|
|
|
|
y|Y|"" )
|
|
|
|
sudo apt upgrade -y;
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
return 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
2021-05-26 16:13:50 +02:00
|
|
|
|
|
|
|
complete -F _apt a
|