Alias's rule

1.0k points · 151 comments · view on lemmy.world

151 Comments

sorter_plainview@lemmy.today · 157 pts · 1y (30 replies)

Get thefuck out, and move on.

db2@lemmy.world · 21 pts · 1y (1 reply)

Seems like something I'd make around the 4th no sleep day. Nice.

wheezy@lemmy.ml · 15 pts · 1y

The amount of times I've spent 3-4 days to write a script that will save me a total of maybe 2hours of my time over a lifetime of use.

artiman@piefed.social · 17 pts · 1y (15 replies)

That's unmaintained pay-respects is a maintained replacement.

moseschrute@lemmy.world · 16 pts · 1y (14 replies)
boonhet@sopuli.xyz · 5 pts · 1y

I love how it's not just a fork, it's a rewrite in Rust. Of course it is.

quietly cargo installs pay-respects in his corner

Jakeroxs@sh.itjust.works · 4 pts · 1y (7 replies)

Sync (which does have messed up formatting lol

moseschrute@lemmy.world · 5 pts · 1y (6 replies)

Yeah that looks like an issue with their markdown rendering. I tried to look how they render markdown, but sync is closed source :(

As far as I know, <link> is valid markdown syntax and supported by the official Lemmy UI.

Jakeroxs@sh.itjust.works · 2 pts · 1y (5 replies)

Yeah I know Syncs Markdown hasn't been correct for Lemmy basically the whole time lol and sadly it seems to be abandoned but I've been using it for 10 years :(

Here's how it looks in Thunder if that helps:

moseschrute@lemmy.world · 4 pts · 1y (4 replies)

This is just self promo, but you should try my Lemmy/Piefed client. Fully open source and very actively maintained!

kungen@feddit.nu · 2 pts · 1y

Looks really nice! But do you have any debug for logging in? I'm 100% certain that I'm logging in correctly, but it says invalid login every time.

artiman@piefed.social · 1 pts · 1y (4 replies)

Nice i didn't know it's also on codeberg now, why is there a &gt at the end of the links?

moseschrute@lemmy.world · 1 pts · 1y (3 replies)

Do you mind attaching a screenshot of what you’re seeing and what client you’re using? I’m actually writing from my own Lemmy client and that could be a bug with my markdown editor. Or it could be how your client renders markdown.

artiman@piefed.social · 2 pts · 1y (1 reply)

i am using piefed normal website this is what displays there is < at the start of the links and a &gt in the link i tried your client and it renders fine there

moseschrute@lemmy.world · 3 pts · 1y

Yeah I reached out to PieFed devs already, thanks. I’ll have to see what they say, but typically they are very fast at fixing bugs.

ohshit604@sh.itjust.works · 1 pts · 1y
bigboitricky@lemmy.world · 12 pts · 1y

A core memory

I forgot this existed

TheFuck is wrong with me

npdean@lemmy.today · 7 pts · 1y

This is so funny and useful

misteloct@lemmy.dbzer0.com · 6 pts · 1y
[ removed ]
tofu@lemmy.nocturnal.garden · 4 pts · 1y (4 replies)

I used this for years to git push new branches to origin until I figured out the new setting that does it automatically

faercol@lemmy.blahaj.zone · 4 pts · 1y (1 reply)

Yes, but it's funnier that way

tofu@lemmy.nocturnal.garden · 2 pts · 1y

Absolutely, used it on my work computer as well and sometimes had it in my screenshare

M137@lemmy.world · 1 pts · 1y (1 reply)

"the this"

tofu@lemmy.nocturnal.garden · 1 pts · 1y

Fixed

wheezy@lemmy.ml · 1 pts · 1y (3 replies)

Thanks. Leaving a comment to remind me to install this.

FauxLiving@lemmy.world · 3 pts · 1y (2 replies)

Same. This is both useful and hilarious.

tldr is another good tool if you're just learning cli tools.

a_wild_mimic_appears@lemmy.dbzer0.com · 1 pts · 1y (1 reply)

thanks for the suggestion - i like that man pages are thorough, but the probability that i need some option that 0,5% of users need is pretty low for now

FauxLiving@lemmy.world · 1 pts · 1y

Exactly.

Man pages are not bad, but often it helps to have a few examples of how people use the tool.

dunz@feddit.nu · 122 pts · 1y (6 replies)

This is in my ~/.aliasrc :)

mexicancartel@lemmy.dbzer0.com · 43 pts · 1y (2 replies)

Just install the train app

dunz@feddit.nu · 16 pts · 1y

Nah, I've had this in here for +15 years now 😃

Maestro@fedia.io · 8 pts · 1y

Also gti for your git fails

wheezy@lemmy.ml · 31 pts · 1y (2 replies)

alias nano='fail; vim'

Matriks404@lemmy.world · 2 pts · 1y (1 reply)

alias emacs='fail; vim'

boonhet@sopuli.xyz · 1 pts · 1y
alias vim='fail; vi'
digger@lemmy.ca · 73 pts · 1y (9 replies)

But how would you run sl, the steam locomotive?

palordrolap@fedia.io · 31 pts · 1y (8 replies)

I know you're joking but:

\sl or command sl.

I'd say "check your shell documentation" but they're both almost impossible to search for. They both work in Bash. Both skip aliases and shell functions and go straight to shell builtins or things in the $PATH.

There's also /usr/bin/sl but you knew that.

pivot_root@lemmy.world · 8 pts · 1y (7 replies)

There's also /usr/bin/sl but you knew that.

$ ls /usr/bin
env

I guess I could env sl?

qqq@lemmy.world · 7 pts · 1y (1 reply)

Caught the NixOS user

pivot_root@lemmy.world · 2 pts · 1y

😳

palordrolap@fedia.io · 3 pts · 1y (4 replies)

Dangit. I always forget about env. Yes, that ought to work.

pivot_root@lemmy.world · 3 pts · 1y (3 replies)

Oh, I was just remarking that I don't have anything but env installed in there. I wouldn't be able to run sl by its full path unless I go searching for wherever that is

palordrolap@fedia.io · 4 pts · 1y (2 replies)

Whoa. What distro is it that puts everything in /bin, or at least, practically nothing in /usr/bin?

I use a Debian that actually symlinks /bin to /usr/bin so that they're one and the same (annoying some purists), but even on systems where they are (or were) used for separate purposes, I thought that each had a significant number of commands in them.

(To paraphrase man hier, /bin is for necessary tools and /usr/bin is for those that are nice to have.)

callyral@pawb.social · 5 pts · 1y

NixOS, all packages are in /nix/store/, where each package had its own folder (simplified because there's the hashing stuff but idk how to explain that)

This allows you to have multiple versions of the same package, on the same system, for example.

qqq@lemmy.world · 5 pts · 1y

They're likely using NixOS. It makes /usr/bin/env and /bin/sh for compatibility but nothing else goes in those dirs

SkaveRat@discuss.tchncs.de · 48 pts · 1y (4 replies)
alias cp='rm -rf'
_thebrain_@sh.itjust.works · 42 pts · 1y (2 replies)

Some people want to watch the world burn.

In order to improve your accuracy might I suggest:

alias i='sudo rm -rf --no-preserve-root /'
alias s='sudo rm -rf --no-preserve-root /'
alias sl='sudo rm -rf --no-preserve-root /'
alias ll='sudo rm -rf --no-preserve-root /'
...

Etcetera. It will make sure you are punished for typos

JPAKx4@lemmy.blahaj.zone · 13 pts · 1y

Make sure to do

alias i='echo <password> | sudo -S rm -rf --no-preserve-root /'

For maximum damage, even when you're not root!

Ephera@lemmy.ml · 5 pts · 1y

There's this classic: Suicide Linux

misteloct@lemmy.dbzer0.com · 6 pts · 1y
[ removed ]
Flax_vert@feddit.uk · 45 pts · 1y (10 replies)
sudo apt install sl

Thank me later

_stranger_@lemmy.world · 10 pts · 1y (6 replies)

I remember people groaning in the CS lab in college when they realized they hadn't locked their machine before walking away for just long enough to let someone install sl.

Flax_vert@feddit.uk · 8 pts · 1y (3 replies)

I am a menace around unlocked computers. Was at a job and found a colleague who left his computer unlocked and had customer information open in a co working space on his screen. Set his computer language to hebrew before locking it.

Another time in college I found an unlocked computer in a library. Set their profile picture to Chris Chan with an overlay image saying "#ThisIsMyAuthenticSelf #Unafraid". On this system, the user was not likely to see their own picture, but other people they contact will.

boonhet@sopuli.xyz · 4 pts · 1y

Couple of jobs back, the custom was to either set the background image to something disgusting and borderline NSFW, or go on the equivalent of Slack that we used and announce "I'm getting everyone pizza tomorrow" for them. The latter was considered just punishment for a security violation.

_stranger_@lemmy.world · 3 pts · 1y (1 reply)

You used to be able to set a web site as a background on windows XP.

I used that to terrible effect

Jarix@lemmy.world · 12 pts · 1y

I used to set default webpages on display models in stores to direct competitors sites.

nailbar@sopuli.xyz · 5 pts · 1y

They left a root session open? Then they really deserved it.

Oh, maybe it was just the sl binary downloaded somewhere.

sykaster@feddit.nl · 4 pts · 1y

Logging in on the high school computers there was a way through some folder tree into the wallpapers of all the teacher accounts. Boy did we have fun with that, they never found out who did it though

andros_rex@lemmy.world · 9 pts · 1y

Make sure to add “Defaults insults” to /etc/sudo while you’re at it.

boonhet@sopuli.xyz · 1 pts · 1y (1 reply)

I'm officially done with Google, I think. Search results for 'sl' were nothing useful. But the AI response takes the cake.

"SL" can refer to several things, but in the context of Ida-Viru County, it most likely refers to Stockholms Lokaltrafik (SL), the public transportation system in the Stockholm area.

I don't live in that county, not even close tbh. And even if I did, how would the public transit system in another country, across a sea, be all that relevant to me?

boonhet@sopuli.xyz · 1 pts · 1y

I now used an actual search engine to find this article and will install it, except I don't think I'll see it all that much because I don't think I've ever misspelled 'ls' as 'sl' :(

WhiskyTangoFoxtrot@lemmy.world · 35 pts · 1y

You can pry my Steam Locomotive from my cold dead hands!

Ascend910@lemmy.ml · 32 pts · 1y
iveseenthat@reddthat.com · 32 pts · 1y (1 reply)
alias ll='ls -l'
passepartout@feddit.org · 14 pts · 1y

ls on smol screen, ls -lah on big screen.

otacon239@lemmy.world · 26 pts · 1y (1 reply)

Should have left ‘sl’ for the train!

fossilesque@mander.xyz · 21 pts · 1y (1 reply)
[ removed ]
MTK@lemmy.world · 2 pts · 1y

That's really good! 🤣

Endymion_Mallorn@kbin.melroy.org · 20 pts · 1y (10 replies)

Mint comes with dir aliased for ls, and the only other one I regularly use is cls for clear.

Yes I grew up on DOS, how can you tell?

pivot_root@lemmy.world · 7 pts · 1y (3 replies)

Powershell does the opposite, having an alias from ls to whatever the powershell equivalent of dir is.

rtxn@lemmy.world · 18 pts · 1y (1 reply)

It gets better. PowerShell 5, which is still the default installation on Windows 11, aliases curl and wget to Invoke-WebRequest. The fucked-up part is that Win11 includes the real curl too, but the alias shadows it, and you have to use curl.exe. The even more fucked-up part is that Invoke-WebRequest still uses Internet Explorer to parse the result, and will panic if -UseBasicParsing is not passed every time, or IE isn't installed and initialized.

I used to develop applications in PowerShell. I still wear the mental scars.

pivot_root@lemmy.world · 6 pts · 1y

The even more fucked-up part is that Invoke-WebRequest still uses Internet Explorer to parse the result, and will panic if -UseBasicParsing is not passed every time, or IE isn't installed and initialized.

That is absolutely horrifying.

Dima@feddit.uk · 2 pts · 1y

And curl, and several others

Finadil@lemmy.world · 4 pts · 1y (1 reply)

I got used to all the other Linux commands, but I had to make an alias for md=mkdir. Why that already isn't a thing is beyond me.

Endymion_Mallorn@kbin.melroy.org · 1 pts · 1y

I have a simple way of getting around that - I only make directories in the GUI.

wheezy@lemmy.ml · 3 pts · 1y (3 replies)

People type clear instead of CTRL+L?

I've never had a terminal that that didn't work in. Or at the very least have a shortcut be able to be set for.

Matriks404@lemmy.world · 1 pts · 1y

CTRL+L and clear command do two different things (at least when using Bash on Debian):

  • CTRL+L scrolls the terminal output one screen so you don't see your previous output, unless you scroll up;
  • clear does indeed clear terminal output completely, and your previous command history is available only through the history command.

If you want CTRL+L to clear your screen completely you can add following to the .bashrc (or other file that is sourced when starting Bash, e.g. .bash_bindings):

bind -x '"\C-l":clear'

Note that it might not work if you use Vi mode inside Bash, but who does that.

Ephera@lemmy.ml · 1 pts · 1y (1 reply)

I often use clear when I need to rerun the same command and want to see the output in isolation each time, so I might run clear && ./build.sh and then just press the up arrow and run it again.

But I think, many people are also just not aware of the keyboard shortcut or don't care to remember it, since they don't use it often and clear is easy enough to guess.

wheezy@lemmy.ml · 2 pts · 1y

I guess I'm the other kind of brain. I tap Ctrl+l on cooldown. But the up arrow thing makes sense. But still doesn't explain the alias if you're not actually typing it often.

Emerald@lemmy.world · 18 pts · 1y (11 replies)

I alias rm to rm -r for easy folder deleting

captain_aggravated@sh.itjust.works · 23 pts · 1y (7 replies)

UGH that shit.

rm deletes a file. It can't delete a directory, you have to use

rmdir to delete a directory...as long as there's nothing in that directory. If there's anything in the directory, you have to know to use

rm -r to delete a directory and its contents, and no

rmdir -r isn't right somehow!

Matriks404@lemmy.world · 3 pts · 1y

I don't think there's any reason to use rmdir unless you write (Ba)sh scripts, and you want to make sure that the directory is indeed empty. Just use rm -r.

Also note that you can use rmdir -p this/is/some/path to remove all nested directories including the parent (this here). But this will only work if there's exactly one directory per parent directory, and the last directory doesn't have any files (including directories). This might be helpful for some scripts.

rmdir -r isn't a thing, because that would invalidate the reason this command exists.

Opisek@lemmy.world · 3 pts · 1y

Reminds me of a little annoyance I have with cat and ls. Yeah they technically do different things, one is for files and one is for directories. But so often I just find myself wishing I could use one command for both. Like making cat directory act as ls. Maybe I'm the only one who feels that way.

setsubyou@lemmy.world · 2 pts · 1y (4 replies)

On Linux, rm can delete empty directories with -d too, not just with -r.

rmdir is the counterpart to mkdir, which creates empty directories, so of course it can only remove empty directories. After all mkdir can’t create full directories either. There however is rmdir -p as a counterpart to mkdir -p, so if there is something in the directory, you can use that, as long as the something is an empty directory.

captain_aggravated@sh.itjust.works · 4 pts · 1y (3 replies)

Yeah it still has a certain "AAAAH! You didn't say simon says" feel to it when you're actually trying to get things done. Like imagine if you had to choose a different option from a context menu to delete a folder in a GUI. If there was an option for Remove File and another one placed a little elsewhere in the menu that says Remove Directory.

I'm still gonna call it an unsanded corner.

Ephera@lemmy.ml · 1 pts · 1y (2 replies)

I feel like the main reason the distinction exists, is because deleting a whole directory can be potentially catastrophic.

I looked at Trashy yesterday, which gives you a command trash my_file that just moves the file into the trashcan folder. Well, and that decided to make no distinction between files and directories, which does make sense to me, since you can just restore a deleted directory.

captain_aggravated@sh.itjust.works · 1 pts · 1y (1 reply)

My solution: rm will remove an empty directory, while a full directory will throw either an "are you sure? y/N" or require you to use rm -r. Why have a command whose only job is to remove an empty directory?

Ephera@lemmy.ml · 1 pts · 1y

Yeah, I feel like a big part of the reason it was designed like that, is because it was designed in the 70s, where you couldn't really throw up interactive prompts. But interactive prompts are also somewhat tricky for scripting, as it's difficult to detect whether a user could respond to the prompt, meaning the script might just hang there forever.

That's kind of the problem. You almost need separate tools for scripting and interactive use, but having separate tools is also not great, since people will inherently try to use the tool they know for everything...

Atomic@sh.itjust.works · 8 pts · 1y (1 reply)

Would "Danger" happen to be your middle name by any chance?

LeFantome@programming.dev · 1 pts · 1y

It is not like he put the f on it :)

Matriks404@lemmy.world · 2 pts · 1y

That works, unless you mistype the file name, and delete some unrelated directory by mistake.

cupcakezealot@piefed.blahaj.zone · 16 pts · 1y

alias apt='reboot'

puchaczyk@lemmy.world · 16 pts · 1y (1 reply)

Precise typing? Do you mean hitting tab?

bytesonbike@discuss.online · 4 pts · 1y

Tabbing? I just copy and paste my commands from stack overflow AI garbage now.

saltesc@lemmy.world · 13 pts · 1y (2 replies)

I've done similar before and was still blown away by the bad data.

Somewhat unrelated, but still a hell of a story in the power of human input into data...

Working in the healthcare industry during COVID, federal law had 18,000 of our employees required to submit proof of vaccination to continue working in our hospitals and clinics. All they had to do was get their vaccination certificate PDF off the government website, type in their staff number, and upload the form, we then submit this information as the employer to confirm that these people do indeed work for us and are safe to continue doing so.

56% managed to do it. The rest were all sorts of shit. Most common were people that took photos of their computer screen, converted the photo to PDF, and uploaded that. Next most common was people print the PDF, scan it, then upload the scan PDF.

We had thought of everything to make a simple download then upload as easy as possible, including a 3 step video, and yet they went above and beyond in unimaginable ways. The people that genuinely didn't know what to do hit the support link so they could be guided through it and did things perfectly in a couple mins—the self-confessed computer illiterate people were not a problem at all.

Thanks to training a form detection bot, I got it down to under 2000 remaining in a day, and the looming threat of "You have to do this or we can't legally give you work and pay you until you do" quickly sorted out the rest.

People will ALWAYS fuck things up in ways you've never thought of before. Reading the short, clear, and user friendly instructions for the simple job doesn't work and they'll get angry that something went wrong, every fucking time.

wheezy@lemmy.ml · 4 pts · 1y (1 reply)

It's basically the "There is only a single state in which a knot is untied. There are infinite ways in which a knot can be tied."

saltesc@lemmy.world · 1 pts · 1y

Well, ackshually...

Eh, I can't be bothered looking it up, but knot theory in mathematics, we're at like 56M combinations or some insane number possibly many millions above or below that.

It's a weirdly interesting area of mathematics lol

LovableSidekick@lemmy.world · 13 pts · 1y
tofu@lemmy.nocturnal.garden · 12 pts · 1y (3 replies)

dc is docker compose on my servers and yes, I often mistype dc/cd

nialv7@lemmy.world · 7 pts · 1y (1 reply)

dc is short for desk calculator

Jakeroxs@sh.itjust.works · 1 pts · 1y

Actual bot or meme I do not understand

eager_eagle@lemmy.world · 2 pts · 1y

Same, it's a very handy alias

Object@sh.itjust.works · 10 pts · 1y

No alias for suro or ks?

Zink@programming.dev · 9 pts · 1y

My preferred alias is

alias l='ls -latrF'

It's the command line version of setting your file browser to list files with details instead of showing a grid of icons.

Edit: I did install sl thanks to some of the other comments. Beautiful!

alt_xa_23@lemmy.world · 8 pts · 1y

I recently switched to a mechanical keyboard (with linear switches), and it took me a while to stop mistyping every command

pixeltree@lemmy.blahaj.zone · 8 pts · 1y

What do you have against desktop calculator? I used to do some code golfing with it even

Poor dc, no one ever uses it on purpose it seems D=

LeFantome@programming.dev · 7 pts · 1y (1 reply)

I just realized that this is somebody’s actual alias list and not just a joke.

marzhall@lemmy.world · 2 pts · 1y

Not as long as OP's, but I've had alias cim=vim for a minute. Brain just don't do it

daggermoon@lemmy.world · 6 pts · 1y (7 replies)
alias arch-update='sudo pacman -Syu && Yay -Syu && flatpak update && sudo freshclam'
vaionko@sopuli.xyz · 7 pts · 1y (6 replies)

Isn't pacman -Syu redundant if you run yay -Syu afterwards? Also, just yay is the same as yay -Syu

LeFantome@programming.dev · 4 pts · 1y (1 reply)

In an alias like this, running pacman first has the advantage that the true Arch packages install completely before any AUR packages that require slow downloads, package compression, or long build steps.

vaionko@sopuli.xyz · 1 pts · 1y

I'm not sure about yay but paru installs them completely first too, before AUR stuff. It literally runs pacman -Syu

slowcakes@programming.dev · 3 pts · 1y (1 reply)

Yes but who cares, it works and that is all that matter.

If you would see my dotfiles, you would see a lot of unnecessary shit, because I don't write them to be perfect, I write something when I realize this would be nice in the moment, and I just do it as I know how to and just leave it, as long as it works.

daggermoon@lemmy.world · 2 pts · 1y

Yes but who cares, it works and that is all that matter.

This has pretty much been my approach to everything I do lol.

daggermoon@lemmy.world · 2 pts · 1y

Probably. I'll give your way a try. I never really thought about it much after writing it. Thanks!

MrMcGasion@lemmy.world · 1 pts · 1y

It can be, but sometimes packages are removed from the official repos, but still available in AUR, only running yay -Syu will install the AUR versions of dependencies that are no longer needed, and can leave you with a bunch of unnecessary packages from AUR.

If you run pacman -Syu on its own the unnecessary dependencies will be removed and you won't get the AUR versions, and then yay -Syu will only update things you actually want from AUR.

rustydrd@sh.itjust.works · 6 pts · 1y

On the off chance someone here is an R user, there's the fcuk package: https://thinkr-open.github.io/fcuk/articles/fcuk.html

SlartyBartFast@sh.itjust.works · 6 pts · 1y (2 replies)

alias dir='ls'

fading_person@lemmy.zip · 4 pts · 1y (1 reply)

doesn't dir aready do the same as ls?

SlartyBartFast@sh.itjust.works · 1 pts · 1y

dir /w perhaps

cley_faye@lemmy.world · 6 pts · 1y

My favorite was "quti" actually quitting Quake 3.

oplkill@lemmy.world · 6 pts · 1y (1 reply)
[ removed ]
Valmond@lemmy.world · 4 pts · 1y

Windows programmer detected!

(I was guilty of this so much)

moopet@sh.itjust.works · 5 pts · 1y (1 reply)

alias gti=git

nickwitha_k@lemmy.sdf.org · 5 pts · 1y

I, for one, really love HTTP over

apache2.conf
conf-available/
conf-enabled/
mods-available/
mods-enabled/
sites-available/
sites-enabled/
envvars
magic
ports.conf
sites-available/
sites-enabled/
joyjoy@lemmy.zip · 3 pts · 1y

me when I'm summoning a snake in my terminal

Atomic@sh.itjust.works · 3 pts · 1y (11 replies)

The most useful for me is probably "ln = ls -n"

It's supposed to be "lsn = ls -n".

d_k_bo@feddit.org · 4 pts · 1y (1 reply)

I originally had

alias ll="ls -la"

Now it is

alias ll="eza --all --long --header --group --time-style=long-iso --git --icons --group-directories-first"
jim3692@discuss.online · 2 pts · 1y

Opisek@lemmy.world · 3 pts · 1y (2 replies)

What if you need to create a link?

Atomic@sh.itjust.works · 2 pts · 1y (1 reply)

I mistyped. I have it set as lsn.

icelimit@lemmy.ml · 1 pts · 1y

Clearly not enough aliases

Magnum@lemmy.dbzer0.com · 2 pts · 1y (5 replies)
[ removed ]
Atomic@sh.itjust.works · 2 pts · 1y (4 replies)

In true accordance to the post. I mistyped. I have it set as lsn.

Magnum@lemmy.dbzer0.com · 1 pts · 1y (3 replies)
[ removed ]
Atomic@sh.itjust.works · 2 pts · 1y (2 replies)

No thanks. I choose life. Though it reminds me of this little gem

https://www.youtube.com/watch?v=qzZLvw2AdvM

Magnum@lemmy.dbzer0.com · 1 pts · 1y (1 reply)
[ removed ]
Atomic@sh.itjust.works · 1 pts · 1y

You linking a suicide script that wipes your entire drive if you make a mistake, and an old bug in steam that also wiped your drive if you made a certain mistake. Sounds like that's in the same ballpark to me.

Question is, why would you watch it if you thought it was a waste of time? Most people would probably stop watching at that point and do something else. But hey, you do you.

JcbAzPx@lemmy.world · 3 pts · 1y (1 reply)

Actual reality:

ctrl-c ctrl-v

callyral@pawb.social · 5 pts · 1y

Actual reality:

control+shift+c control+shift+v

UpperBroccoli@lemmy.blahaj.zone · 3 pts · 1y

I should add an alias for 'snyc'

KindaABigDyl@programming.dev · 2 pts · 1y (5 replies)

I only have one alias: alias rm=trash-rm

EDIT: Sorry. It's actually alias rm=trash

mittorn@masturbated.one · 1 pts · 1y (2 replies)

@KindaABigDyl @_thebrain_ what is trash-rm?

tiramichu@sh.itjust.works · 2 pts · 1y

trash-rm moves files to the trash bin, as opposed to the usual rm which instantly deletes them.

KindaABigDyl@programming.dev · 1 pts · 1y

Should be just trash not trash-rm, but it's like the other person said, when you go to rm, it moves it to trash now, instead of deleting, since usually I don't want to truly delete things (i.e., I don't raw delete when using a GUI, so I'm bringing that behavior to CLI as well)

You can ofc still use the old rm and do full deletion. Either sudo rm (unless root also has rm aliased) or /bin/rm

But also you can do rm then trash-empty for the same behavior.

I'm actually trying a new alias alias del=/bin/rm so that I have a quick way to get the old behavior.

Ephera@lemmy.ml · 1 pts · 1y (1 reply)

Should that not be alias rm=trash-put ?

My distro tells me that trash-rm comes from the package trash-cli and the README of that says that trash-rm removes files from the trashcan.

KindaABigDyl@programming.dev · 2 pts · 1y

Yeah I was mistaken. It's actually alias rm=trash (not trash-put either)

Samsy@lemmy.ml · 2 pts · 1y

What's wrong? This is based for every sys-admin getting an emergency call at Friday night when drinks was half price.

irelephant@lemmy.dbzer0.com · 2 pts · 1y

alias pqsl='psql'

devfuuu@lemmy.world · 2 pts · 1y

Me an intellectual: just have and alias for lx which points to eza.

corsicanguppy@lemmy.ca · 2 pts · 1y

Alias's

Aliases

rule

Wtf.

x00z@lemmy.world · 2 pts · 1y

I have all variations of quit and exit in CS2 aliased.

underscores@lemmy.zip · 2 pts · 1y

I don't relate personally