Alias's rule
Alias's rule
suro or ks?
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.
There’s also /usr/bin/sl but you knew that.
I guess I could env sl?
env. Yes, that ought to work.
env installed in there. I wouldn’t be able to run sl by its full path unless I go searching for wherever that is
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.)
/use/bin/env and /bin/sh for compatibility but nothing else goes in those dirs
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.
A core memory
I forgot this existed
TheFuck is wrong with me
Same. This is both useful and hilarious.
tldr is another good tool if you’re just learning cli tools.
Exactly.
Man pages are not bad, but often it helps to have a few examples of how people use the tool.
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.
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:
This is just self promo, but you should try my Lemmy/Piefed client. Fully open source and very actively maintained!
I think I added better error messaging in this preview release of the next version.
Ah, I got in. Just like the Swedish king, I’m actually dyslexic haha.
I’d love to be able to disable animations though. And be able to zoom when viewing image posts. And be able to view NSFW by holding in on the main feed (it seems like holding in on any image copies it to my Android clipboard?). And opening links via WebView or such instead of Chrome custom tabs could be cool, as I like how it’s basically a fresh session every time. And swiping to upvote is nice too.
(I know you didn’t ask for feedback, because it’s still really nice how it is now; just some ideas if you’re bored – no idea if it’s practical it’d even be implement this kind of stuff inwhat I think is a progressive webapp?) Keep up the great work! /Sent from my Blorp
First off, please fire away with the feedback. Though I can’t make any promises.
In the next update
Not planned (yet)
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
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?
ls to whatever the powershell equivalent of dir is.
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.
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.
curl, and several others
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.
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.
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;clear does indeed clear a screen, and your previous command history is available only through the history command.If you want CTRL+L to clear your screen you can add following to the .bashrc:
bind -x ‘“\C-l”:clear’
Note that it might not work if you use Vi mode inside Bash.
This is in my ~/.aliasrc :)
alias nano=‘fail; vim’