38 lines
538 B
Bash
Executable File
38 lines
538 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo
|
|
echo -e "\033[31mThis is apt alias for pacman, please if you can use pacman\e[0m"
|
|
echo
|
|
|
|
if [ "$1" == "install" ]; then
|
|
pacman -S "$2"
|
|
fi
|
|
|
|
if [ "$1" == "update" ]; then
|
|
pacman -Syy
|
|
fi
|
|
|
|
if [ "$1" == "upgrade" ]; then
|
|
pacman -Su
|
|
fi
|
|
|
|
if [ "$1" == "remove" ]; then
|
|
pacman -R "$2"
|
|
fi
|
|
|
|
if [ "$1" == "autoremove" ]; then
|
|
pacman -Rcns $(pacman -Qdtq)
|
|
fi
|
|
|
|
if [ "$1" == "autoclean" ]; then
|
|
pacman -Sc
|
|
fi
|
|
|
|
if [ "$1" == "purge" ]; then
|
|
pacman -Rcns "$2"
|
|
fi
|
|
|
|
if [ "$1" == "clean" ]; then
|
|
pacman -Scc
|
|
fi;
|