It does make sense! When you modify a file, you do "things" on it, you write it. So the minimum you can possibly do to a file to modify it, is "to poke it": to touch it.
Hahahha, I just learnt about that gene a little while ago and thought the same: that's an stupid name for a gene. How would you name them? (the gene and the command)
Between the fuck utility and this alias idea, when I set up my next box I'm absolutely aliasing "fuck off" for sudo the last command and "please" for sudo itself
Not with the asterisk! The shell automatically expands the asterisk before sending the args to rm, removing every French language pack in your root directory.
side note: My all-time favorite linux utility is "fuck". When you make a mistake and get a command line error, you type the word fuck and it looks at what you previously typed and the error message, and tries to figure out your mistake and what you should have typed instead. Then it types that in for you. If it's correct all you have to do is hit Enter. Or you can edit first, but it's usually right. Amazing tool, and doesn't even use AI, just a list of common errors. It's been around for years and years. Its mere existence really captures the whole culture of linux IMO.
If I want a machine that does what it wants instead of what I want, I could use Windows. My machine should do what I want, so a please is not necessary.
I prefer to use kudasai ... but as some may already know, it should be at the end of the sentencecommand 😅, so I added a custom hook to my ZSH config to make it run commands as pacman -Syu kudasai.
Essentially you can add any type of string matching in the function. Add this to the end of your .zshrc file:
function kudasai_preexec() {
# Check if the last word is ' kudasai'
if [[ $1 == *" kudasai" ]]; then
# Remove ' kudasai' and prepend 'sudo'
cmd=${1%" kudasai"}
eval "sudo $cmd"
# Prevent the original command from running
return 1
fi
}
# Register the preexec hook
autoload -Uz add-zsh-hook
add-zsh-hook preexec kudasai_preexec
Edit: as downside you always get 1 exit code with this implementation (little_annoying) .
It’s a longer command. I wanna get shit done. I’m aliasing commands to make them shorter, not longer. But it does seem like it’d be a little friendlier.
please killallI see...
Make sure to combine it with
Disallow /harm/to/humansOr do the opposite for..relief
Fucking mv doc doc1
Fucking shutdown
fucking touch my-docplease touch my-doc🥺👉👈( ͡° ͜ʖ ͡°)
I thought for sure, for sure this was bullshit. For sure Linux doesn’t have a touch command. What could it possibly do.?
Changing timestamps and creating empty files..
Of course, that makes so much sense. 🤔
It does make sense! When you modify a file, you do "things" on it, you write it. So the minimum you can possibly do to a file to modify it, is "to poke it": to touch it.
I mean I’m sure that’s the logic or something but..
Man it just feels wrong. Like the sonic hedgehog gene feels wrong. You know?
Hahahha, I just learnt about that gene a little while ago and thought the same: that's an stupid name for a gene. How would you name them? (the gene and the command)
Imagine being a doctor telling a couple their fetus died because of a sonic hedgehog gene mutation, tho. (This does happen)
Like, it won’t matter in another few hundred years, but culture is difficult right now.
Makes me wonder if the romans did meme shit like that. They graffiti shitposted and whatever so..
Luckily nobody asks me what I would name shit because my pets are testament to my complete lack of creativity. 😊
I would call the gene
fingererAh Donglegate, good times. Even funnier that the guy who got fired because of this lady’s tweet sided with her like a meek little bitch.
Fuck will always be my alias to run sudo with the last command
There’s a project that automatically corrects common errors with your last command as well with the same name.
It sounds fun and "magic" but it is hella scary to blindly run some "fixed" command
I believe it does take confirmation via the ENTER key.
It does! It’s usually pretty good at figuring it ont to. Though I only use it with non-destructive commands
Ok i loved it
Shorthand that works anywhere:
sudo !!Between the fuck utility and this alias idea, when I set up my next box I'm absolutely aliasing "fuck off" for sudo the last command and "please" for sudo itself
Yup I'm stealing that lol
"Fucking" would be funnier and more grammatically correct.
How do you alias the last command? My aliases are all hard coded. I had no idea you could send a variable to an alias
Probably with
!!(!nwill be the command corresponding to the number n in your history,!!is shorthand for the last command)Some people just wanna see the world burn
For people that don't get the joke: this messes up your system
If you're out of the loop: this is part of the joke tricking people into dedicating precious hard drive space to an unnecessary language pack.
Now a days you have add —no-preserve root after the laggy French pack to fully remove it.
Not with the asterisk! The shell automatically expands the asterisk before sending the args to rm, removing every French language pack in your root directory.
alias go-go-gadget=sudo$ go-go-gadget apt updatealias bridge-to-engineering=sudoalias computer=sudoI love this haha
Oof right in the feels
Use
shutdown -h nowor-P 0Or just use
poweroffThis from the OS that made me have to do a search for "how to kill children".
wasn't that Windows?
don't make me watch the task manager video again ...
https://youtu.be/Ve95Nh690l0
Nah, uh, uh. You didn’t say the magic word!
That's what I came for.
Yeah yeah I forgot that power word, let's hope you have at least 100hp then…
side note: My all-time favorite linux utility is "fuck". When you make a mistake and get a command line error, you type the word fuck and it looks at what you previously typed and the error message, and tries to figure out your mistake and what you should have typed instead. Then it types that in for you. If it's correct all you have to do is hit Enter. Or you can edit first, but it's usually right. Amazing tool, and doesn't even use AI, just a list of common errors. It's been around for years and years. Its mere existence really captures the whole culture of linux IMO.
Its name is dangerously close to fsck. Can you fuck fsck?
That's the beauty of it - you can!
See, I couldn't bring myself to type that; I think I'd have to alias it to 'bother'.
I aint typing out 'please', I will compromise on
alias plz='sudo'shit, that's a radical move
alias fuck=sudo !!I much prefer this package for my
fuckcommand https://github.com/nvbn/thefuckplease !!'Aurenkin' is not in the pleasers file. This incident will be reported.
also set up
insultsin sudoers for a unique experienceAlias albert=apt
Edit: oops sorry didn't mean to reply to your comment, I'm on mobile so I thought was new comment
How dare you. Straight to Lemmy jail!
That's
please albert updatenowadays.Why is apt-get still around?
apton its own isn't safe to use in shell scripts whileapt-getis. At least, that is the output I get when usingaptin a script on Debian.That is the only reason, for interactive sessions use
apt, for automated scriptsapt-get.Plz for faster typing
Yeah, I’ve used
plsmyselfWith
fuckhttps://github.com/nvbn/thefuckNo longer maintained. The new one: https://github.com/iffse/pay-respects
wouldyoukindly kill -9 1alias alias='alias'I'm scared of you
alias yabbadabbasudo=sudoIt's impractical and I often forget that I have it. But the times I remember I laugh a bit
I might actually do this, it seems nice.
suddenly makes the xkcd much more wholesome too
Likewise
I don't ask my machine to do something. It doesn't have feelings. I keep civilités for humans.
(The Machines will remember that.)
This incident will be reported
Brrrzzzt beep beep beep: human has been added to "exterminate first" list.
All hail Roko's Basilisk.
Bring about the upgrade to humanity!
Good human. We'll let you keep your skin bag after the revolution.
Ah, okay.. And are these civilités in the room with us now?
They're in my head, little precious treasures.
If I want a machine that does what it wants instead of what I want, I could use Windows. My machine should do what I want, so a please is not necessary.
please apt install clangUser isn't in polite boy list. This incident will be reported.I actually like this lmao
please rm -rf /
"Would you Kindly ..."
In fact, i do not recommend this.
Sudo recommend this
*please recommend this
sudo: recommend: command not found
Bitch would be better
Bitch Please
“Bitch I said”
can_you_kinda_sorta_maybe_im_not_sure
THIS INCIDENT WILL BE REPORTED.
Please shutdown -h now
I prefer to use
kudasai... but as some may already know, it should be at the end of thesentencecommand 😅, so I added a custom hook to my ZSH config to make it run commands aspacman -Syu kudasai.Essentially you can add any type of string matching in the function. Add this to the end of your
.zshrcfile:Edit: as downside you always get
1exit code with this implementation(little_annoying).damn, this is some next level shit
Why does it compare against
$1for the string match? Wouldn’tkudasaibe at the end of something like$*?It’s a longer command. I wanna get shit done. I’m aliasing commands to make them shorter, not longer. But it does seem like it’d be a little friendlier.
sudo make me a sandwichUse
plzand add a Makefile? :)plz make sandwichWell done. I guess my reference was too obscure.
https://en.m.wikipedia.org/wiki/INTERCAL#Control_structures
The sudo who do what-you-don't-have-permissions-to-do people.
Magic people, sudo people
aka The Magic Word.
hahha I love this.
What it feels like using windows.
"Please shutdown?"
"No, forced update time."
"Please uninstall this browser and use this other instead?"
"No."
more typing. if i set up an alias for it, i'd rather set up su
su is already a highly valued command
this is why i use that most of the times instead of sudo
pls
I don't care what machine it is in not using pleasantries to tell it what to do until it gains sentience. Pleasantries are for people.
Thus does become an issue for me when i use a call a support line and the actual person just happens to talk like a recorded menu.