ChrisTitusTech / Debian-titus

Debian customizations from Chris Titus Tech
GNU General Public License v3.0
414 stars 152 forks source link

Change forgotten lines of apt to nala #66

Closed win20-official closed 1 year ago

ghost commented 1 year ago

Hello. Using nala is nice idea!

If the user wants to continue with nala, I think we can use .bashrc for this.

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
}' | sudo tee -a /root/.bashrc
win20-official commented 1 year ago

But what if you want to use apt

win20-official commented 1 year ago

You know i forgot some lines so that's why i made this update

ghost commented 1 year ago

You know i forgot some lines so that's why i made this update

I know, my comments are about using nala in general. I guess I shouldn't discuss this here.

But what if you want to use apt

I just said if user wants to continue with nala.