Score:0

How to replace nala with apt?

ck flag

I love nala and I want to use it but my muscle memory always goes for apt and every guide on the internet uses apt when I copy paste commands. Is there a way where even if I type apt nala is still used?

Score:1
vn flag

You can create new aliases for both the apt and nala commands like this:

alias apt='\nala'
alias dapt='\apt'

The backslash character preceding the commands disable alias expansion, so you can rename commands, but still run the originals (see here).

In addition, for aliases to work with sudo, you need to add this alias also (see here):

alias sudo='sudo '

Just be aware that if you copy and paste apt commands from the internet, that you now run with nala, it's possible that some options are not supported. So be sure to check it's a valid command for nala before you run it.

sudo apt-get bitches avatar
ck flag
This doesnt seem to work on root. When I run the apt with sudo it still uses apt.
Artur Meinild avatar
vn flag
I addressed this ^^
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.