Doesn’t it autocomplete? I mean, not if it’s an argument for sudo, obviously, but my terminal starts in interactive mode anyway, so that’s rarely an issue
I don’t know, to be honest; I’m not deeply familiar with its workings. I just know that I made a habit of running a command “dry” without sudo, both because not everything should be done with superuser privileges* and because it’s a way to make sure I get the syntax right, then if it does need sudo, I repeat it with sudo.
*Which is why sudo -i (the interactive mode) is a dangerous tool that shouldn’t actually be your default mode of working
Auto complete is a separate command (or a bash function) that runs when you press tab. It’s a feature of the terminal (e.g. bash). Programs can provide theur auto complete while distributing their packages, or provide a flag to generate auto complete.
So I would think you can just call that function call auto complete for whatever command is after sudo. But maybe it gets complicated. I’ve only written it for my own programs.
Cool meme, but why not
--noconfirminstead of piping yes into pacman?Because yes is three keystrokes and --noconfirm is eleven
Yeah, but idk, constantly shouting ‘YES!’ at pacman like that seems kinda rude…
Doesn’t it autocomplete? I mean, not if it’s an argument for
sudo, obviously, but my terminal starts in interactive mode anyway, so that’s rarely an issueMr/s. Fancy terminal over here
Get a load of this guys autocompleting terminal
Why not if it’s for sudo, can’t sudo just redirect the auto complete to ask based on the command after sudo?
I don’t know, to be honest; I’m not deeply familiar with its workings. I just know that I made a habit of running a command “dry” without sudo, both because not everything should be done with superuser privileges* and because it’s a way to make sure I get the syntax right, then if it does need sudo, I repeat it with sudo.
*Which is why
sudo -i(the interactive mode) is a dangerous tool that shouldn’t actually be your default mode of workingAuto complete is a separate command (or a bash function) that runs when you press tab. It’s a feature of the terminal (e.g. bash). Programs can provide theur auto complete while distributing their packages, or provide a flag to generate auto complete.
So I would think you can just call that function call auto complete for whatever command is after sudo. But maybe it gets complicated. I’ve only written it for my own programs.