Live data from Hacker News

Exa Is Deprecated

github.com

151–160 of 244 posts

Re: Exa Is Deprecated

#151
post #89

Earlier quoted context omitted.

Just another "command not found" on that remote machine you forgot you were on.

Not hard to fix: if command -v exa &> /dev/null; then alias ls='exa' fi

I do it differently. It supports not having to reload aliases after installing.

    alias vim='$(command -v nvim || echo vim)'

Re: Exa Is Deprecated

#152
post #126

Earlier quoted context omitted.

Just another "command not found" on that remote machine you forgot you were on.

This is the problem with all tools outside the most basic and you have to keep muscle memory for grep and ls to deal with it. Thus the fancy replacement tools have a cost. I can bear to pay that cost for "fd" (fdfind) and ripgrep but exa didn't really offer me enough.

I used to subscribe to this idea too, but I've since tried to leave it behind. I ended up just not using tools that gave me a benefit the majority of the time. Ripgrep is a great example. So much better than grep IMO but not going to be on that remote machine. When I need to, I'll adapt to egrep. Same with vim plugins. I ended up just not using stuff I liked so I wouldn't get used to it. Felt backwards to me.

If you spend a ton of time on remote machines you won't get control of, I can absolutely get it though. I think as long as you know the backup and you can adapt, we'll be fine most of the time. Knowing the idioms to get you part of the way there to the convenient functionality is a good enough mental polyfill.

Re: Exa Is Deprecated

#153

Earlier quoted context omitted.

> My tooling needs to be somewhat more portable. Ah yes, because it's 100% impossible to learn new tools and fall back to the core ones when you need to. ;P I've been doing this for decades now, it's just not that big of a deal.

... as in if [ -z "$(which exa)" ] then LS1='ls -1' else : fi ${LS1} ${SOME_DIR} | ... ?

I just have in my personal systems ls aliased to exa (with some of my preferred options like group-directories-first) and on other systems it's still ls. So my usage is the same regardless of whether it's exa or ls. This isn't a programming language or a complicated tool like jq vs competitors where what I need to do changes. I just get the nicer presentation on my local machine and "graceful degradation" back to the defaults of GNU ls on remote machines which don't have my preferred setup installed on them.

Re: Exa Is Deprecated

#154

Earlier quoted context omitted.

> Most people don't type `ls` directly either. Aliases like `l`, `ll` and `la` are very common, in which case it really doesn't matter which tool you're using. Huh. I always use plain ls with flags and deliberately unset aliases like ll. I guess I'm weird.

You're not alone, is saving one character worth losing the muscle-memory?

I like ll a lot for ls -ahlF, but I do run into its absence a lot on a remote machine. At that point, I'll just set the alias though.

Re: Exa Is Deprecated

#155
post #4

I've been using LSD instead of Exa, so I'm lightly relieved that I don't have to change over. Both projects are amazing little utilities that when combined with a well-customized shell, really make using the terminal a joy. I absolutely love the trend of rewriting classic Unix utilities in rust, because the new tools often have (small or large) usability and quality of life improvements that altogether make the termi…

I use a white terminal background, and lsd outputs yellow, which is unreadable on white. I've so far failed to stop this; e.g. it didn't seem to respect my LS_COLORS.

Re: Exa Is Deprecated

#156
post #2

I hope that the author Benjamin Sago is alright. It's always concerning when FOSS developers disappear for a while - even though it isn't uncommon.

Their personal site is gorgeous: https://bsago.me The tech notes are particularly useful: https://bsago.me/tech-notes There’s a ray of hope on their RSS feed: https://bsago.me/tech-notes/feed.json The last published date is September 2022, which is almost a year after their last GitHub activity: https://github.com/ogham?tab=overview&from=2021-12-01&to=202... So in absence of other information, I’d rather believe they…

[flagged]

Re: Exa Is Deprecated

#157

Earlier quoted context omitted.

> Most people don't type `ls` directly either. Aliases like `l`, `ll` and `la` are very common, in which case it really doesn't matter which tool you're using. Huh. I always use plain ls with flags and deliberately unset aliases like ll. I guess I'm weird.

You're not alone, is saving one character worth losing the muscle-memory?

It's hardly one character. I never need the plain output of `ls` in interactive sessions.

Here are my aliases:

    if type exa >/dev/null 2>&1; then
        alias l='exa -alg --color=always --group-directories-first --git'
        alias ll='exa -aliSgh --color=always --group-directories-first --git'
        alias lt='exa -@alT --color=always --git'
        alias lr='exa -alg --sort=modified --color=always --group-directories-first --git'
    else
        alias l='ls -alh --group-directories-first'
        alias ll='ls -al --group-directories-first'
        alias lr='ls -ltrh --group-directories-first'
    fi
I still retain `ls -ltrh` in my muscle memory, but after years of typing it, `lr` has saved me a lot of time and effort.

Aliases are not just a way to type less. They also serve as a way to define configuration. If I ever need to tweak the output for all my usage of `ls`, I can just add it to all aliases, as I've done for `--group-directories-first`.

Re: Exa Is Deprecated

#158
post #123

Earlier quoted context omitted.

And so will exa, probably. And if it won't, it will be forked. Which is exactly the reason "ls" is working perfectly fine for you today. The original AT&T UNIX "ls" has been forked over and over again and rewritten from scratch several times. You're using an evolved fork of this "ls" if you're using macOS or BSD, but if you're on Linux you're using a rewrite (GNU coreutils ls), and if you're running BusyBox you're us…

That's mostly rubbish though. The reason ls works perfectly fine today is no one dares fuck with the interface in case they break everything that depends on 30 years of assumptions even if they do suck a little bit. That includes all the forks and rewrites. This is almost entirely missing in "modern" software development. And I don't think any of us have time or energy really to track down varying different forks of…

ls does not have a consistent interface beyond the basics. And honestly, for the "portable subset", you may not even realise that ls is aliased to exa or lsd or whatever. This is why on why of my systems I'm sitting at right now, (MacOS) ls --help reports "unrecognized option `--help`" and on the other (GNU) ls reports a list of options so long that the entire alphabet is accounted for in both lower and upper case.

Re: Exa Is Deprecated

#159

Earlier quoted context omitted.

> My tooling needs to be somewhat more portable. Ah yes, because it's 100% impossible to learn new tools and fall back to the core ones when you need to. ;P I've been doing this for decades now, it's just not that big of a deal.

... as in if [ -z "$(which exa)" ] then LS1='ls -1' else : fi ${LS1} ${SOME_DIR} | ... ?

If you do that consider if command -v exa > /dev/null instead, so you don't spawn subprocesses unnecessarily.

Re: Exa Is Deprecated

#160

Earlier quoted context omitted.

Their personal site is gorgeous: https://bsago.me The tech notes are particularly useful: https://bsago.me/tech-notes There’s a ray of hope on their RSS feed: https://bsago.me/tech-notes/feed.json The last published date is September 2022, which is almost a year after their last GitHub activity: https://github.com/ogham?tab=overview&from=2021-12-01&to=202... So in absence of other information, I’d rather believe they…

[flagged]

Singular they is not a thing that was made up by trans people, but has been annoying pedants for centuries.
Post reply on HN