Add nala.sh
This commit is contained in:
24
nala.sh
Normal file
24
nala.sh
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
sudo apt update && sudo apt install nala
|
||||||
|
sudo nala fetch
|
||||||
|
echo "apt() {
|
||||||
|
command nala "$@"
|
||||||
|
}
|
||||||
|
sudo() {
|
||||||
|
if [ "$1" = "apt" ]; then
|
||||||
|
shift
|
||||||
|
command sudo nala "$@"
|
||||||
|
else
|
||||||
|
command sudo "$@"
|
||||||
|
fi
|
||||||
|
}" >> ~/.bashrc
|
||||||
|
echo "apt() {
|
||||||
|
command nala "$@"
|
||||||
|
}
|
||||||
|
sudo() {
|
||||||
|
if [ "$1" = "apt" ]; then
|
||||||
|
shift
|
||||||
|
command sudo nala "$@"
|
||||||
|
else
|
||||||
|
command sudo "$@"
|
||||||
|
fi
|
||||||
|
}" >> /root/.bashrc
|
||||||
Reference in New Issue
Block a user