Hacker Newsnew | past | comments | ask | show | jobs | submit | more monroewalker's commentslogin

Other than colorization, what are people getting out of ls replacements like this? I've recently started using ranger which might replace my ls usage for the most part since it not only shows everything in the directory but has vim like shortcuts for filtering, sorting, and searching the directory as well as previewing files and entering other directories


Hi, author of `pls`[1] here. `pls` goes above and beyond what is typically possible with `ls` without going so far as to become an entire TUI file explorer like Broot[2].

Among a few things it does that `ls` (and other alternatives like `eza` don't do) are: - icons (SVG icons in terminals that support it, Nerd Fonts otherwise) - advanced filtering using regex - advanced sorting across multiple sort bases - styles and colors using customisable rules

For someone wanting to make the output of `ls` prettier (with a few extra bells and whistles) without having to relearn a new workflow, something like an `ls` replacement makes more sense.

[1]: https://pls.cli.rs [2]: https://dystroy.org/broot/


pls looks useful and I will retain it but eza is giving more icons for more things via (this is my alias for `l`, basically)

`eza --long --hyperlink --header --all --icons --git --sort name`

also the hyperlink thing is useful


ls does colored output. I'm surprised it's not the default for you.


If you run `dircolors --print-database|less` you will see that GNU ls only highlights/colors the path/filenames according to a simplistic scheme where a file can only resolve to one type even though on many terminals today "foreground overlays background overlays bold/italic/etc". (https://github.com/c-blake/lc#vector-typemulti-dimensionalit... has a more advanced idea.)

This tool by triyanox -- just from the screen shot if you click through -- will also colorize permission masks and sizes, dates, user & group.


I managed to scroll past the screenshot twice (now and earlier) before it had loaded.

Two settings for ls make some of the colouring less useful to me.

BLOCK_SIZE='1 formats sizes in bytes with comma separators. TIME_STYLE=long-iso formats the dates sensibly.

This means entries line up in neater columns.

  -rwxr-xr-x 1 root   root            852 2024-02-23 22:31 zsh5
  -rwxr-xr-x 1 root   root      1,022,760 2024-08-09 04:33 zstd
  lrwxrwxrwx 1 root   root              4 2024-08-09 04:33 zstdcat -> zstd


You could probably embed raw ANSI SGR color escape sequences { maybe from $(tput) if your terminal might be weird } inside a TIME_STYLE=+FORMAT to colorize the times.

In `lc`, mentioned a bit this thread, you can actually color the age like a "heat map" if you want. I.e. more recent times are more toward the red side of the rainbow and older ages toward the other "cooler" side ("cold storage"). Or whatever color scheme you like. So, if you know you're looking for something recent, the color pops out at you. If you like that kind of thing.


What's the issue you have with AI?


That it's bullshit.


I gave fish an honest try but ultimately just could not make it work for me. I forget what ended up being the nail in the coffin.. possibly the lack of multiline strings or some heredoc alternative. https://github.com/fish-shell/fish-shell/issues/540. That or I ran into compatibility issues with existing scripts. Which I think also happened.


Still using an Intel MacBook Pro. Time for an M3 or wait for M4?


If the M4 really is coming out in a month, wait. Either get a 25% improvement “for free” (compared to what you’d pay now), or get a used one for cheaper as people with more money than sense rush to upgrade.

But it is way past time to upgrade your Intel Mac to Apple Silicon. The difference is night and day.


Probably have a chance at getting a nice discount on a refurb/discontinued model after the M4 comes out.


At this point wait for the M4, seems like it's going to drop in a month or so, and then get that. Though truth be told you could jump to an M4 MacBook Air and still get better performance than your Intel machine. Most people do not need the "Pro" or "Max" chips, even professionals.


M4 MacBook Air is rumored for next year.


M3 is already a massive improvement, but since prices don’t really get lower as time goes on, you might as well buy the M4 when it is fresh?


I'm still on a M1 max pro, and it was a massive increase. Night and day.


You should wait for M5 to get M4 for a discount


Can we have Arc added to the title of the post to better alert people who use or know people who use the browser?


Huge agree. I didn’t realize this applied to me the first time I saw this story yesterday. It was the rename that got me to click.

Honestly I strongly feel the title should be “fundamental bug in Arc browser (CVE 123-4567)” or similar.


huh, Rogule was pretty quick to finish


Thanks for sharing! Might start playing Weaver. Squaredle I think is just too tedious lol. Travle would be nice to be good at. Waffle I stopped enjoying after figuring it out


Huh.. what specifically do you take?


Which funds though?


I'm sure you're already aware of the general consensus around how speculative cryptocurrency and meme stocks are but it's worth repeating that this is a very dubious approach. On GME specifically, this is a good documentary to watch: https://youtu.be/5pYeoZaoWrA?si=OuRp-NxyiYR8XmA0

I think it's worth it for you to consider reducing your allocation to these even if you have strong conviction in their long term success. If you do 25% GME/crypto and 75% index funds (or target retirement) then you're still going to be doing extremely well if these assets take off as hoped for but you'll be much better off in the alternative and less surprising scenario where they don't


Oof, no. I'm well aware of the advice and I don't agree with it.

I expect GME to crash and burn. I was going to change jobs at some point, in which case my traditional 401K funds will just disappear because they are not vested. If I happen to win the blue moon GME lottery I'll just stay a bit longer to vest the winnings. In my specific situation it's essentially buying memes with someone else's money at zero downside.

As for BTC, I don't use Roth 401K/IRAs as a retirement vehicle. I use it as legal tax avoidance on a very specific high-risk part of my portfolio that is tax-inefficient if it wins. Given the shitty 401K dollar limits I'm not going to put a cent of it toward stuff that's already tax-efficient if I have tax-inefficient stuff outside that can be swapped in.

The vast majority of my net worth is {municipal bonds, index funds, stocks} are all held in a normal brokerage account because they are not taxed as much to begin with. That's my actual stably-growing retirement fund, and much, much larger than my 401K.

This isn't investment advice, but if you are in a job where you are maxing out your 401K but saving much more outside the 401K than inside it, I'd encourage you to consider the math of doing all your index funds outside 401K and whatever high risk plays inside 401K/IRA. You may find the math works out better that way, like I do.


This is novel to me. The last line is critical though, this only works if you are out-investing a maxed out 401k. Meaning, after investing over $20k, if you are investing an additional $100k, you are better off taking risks in that 401k because a moonshot there would be well protected and a loss there would be minor relative to other investments you presumably have.

Thanks for sharing, but for most this is, as you said, terrible investment advice.


> my traditional 401K funds will just disappear because they are not vested

Are you not contributing your own money (from your salary) to your 401k?

In every 401k I've seen it's only the employer matching portion that is vested, and the majority of the account is the employee contribution which they can take 100% with them when they leave (regardless of vesting).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: