#_ prefix for sudo commands?

7 messages · Page 1 of 1 (latest)

upper fulcrum
#

I currently have an alias for _ to be sudo, but is there a way to run _pacman -Syu with the underscore basically meaning "run this cmd with sudo"?

With the current alias I can run _ pacman -Syu but as stated above, I would like to be able to just use _pacman -Syu.

Bash, by the way.

old widget
#

nah bc _pacman would count as one command

#

u could create a script named _pacman that does that but that would only be for that one command then

twilit tundra
upper fulcrum
#

oh, true...

#

i guess that doesn't work then

noble moss