Readit News logoReadit News
pmarreck commented on Start all of your commands with a comma (2009)   rhodesmill.org/brandon/20... · Posted by u/theblazehen
cluckindan · 18 hours ago

  which <commandname>

pmarreck · 3 hours ago
nope, that just gets you the first hit, not all of them

type -a commandname

pmarreck commented on Start all of your commands with a comma (2009)   rhodesmill.org/brandon/20... · Posted by u/theblazehen
e40 · 19 hours ago
Care to share?
pmarreck · 3 hours ago
quite simple

type -a <commandname>

pmarreck commented on Start all of your commands with a comma (2009)   rhodesmill.org/brandon/20... · Posted by u/theblazehen
alzee · 21 hours ago
Using commas in filenames feels kind of weird to me, but I do use a comma as the initiator for my Bash key sequences. For example: ,, expands to $ ,h expands to --help ,v expands to --version ,s prefixes sudo

You put keyseqs in ~/.inputc, set a keyseq-timeout, and it just works.

pmarreck · 20 hours ago
also. did you mean .inputrc ?
pmarreck commented on Start all of your commands with a comma (2009)   rhodesmill.org/brandon/20... · Posted by u/theblazehen
impoppy · a day ago
Why so many people use ~/bin/? What’s wrong with ~/.local/bin?
pmarreck · 20 hours ago
The latter is XDG.

~/bin predates it.

And of course you can use both.

pmarreck commented on Start all of your commands with a comma (2009)   rhodesmill.org/brandon/20... · Posted by u/theblazehen
layer8 · 20 hours ago
But Bash arrays don’t use comma, what’s the problem?
pmarreck · 20 hours ago
Have you met Bash? It’s a shrine to space-delimited everything lol
pmarreck commented on Start all of your commands with a comma (2009)   rhodesmill.org/brandon/20... · Posted by u/theblazehen
alzee · 21 hours ago
Using commas in filenames feels kind of weird to me, but I do use a comma as the initiator for my Bash key sequences. For example: ,, expands to $ ,h expands to --help ,v expands to --version ,s prefixes sudo

You put keyseqs in ~/.inputc, set a keyseq-timeout, and it just works.

pmarreck · 20 hours ago
would an alias just work in this use-case?
pmarreck commented on Start all of your commands with a comma (2009)   rhodesmill.org/brandon/20... · Posted by u/theblazehen
mathfailure · a day ago
I didn't like the idea. I prefer the alternative approach: _I_ decide the order of dirs in the PATH env. If I introduce an executable with a name, that overrides a system one - I probably do that intentionally.

If I introduce an alias (like `grep='grep --binary-files=without-match --ignore-case --color=auto`) that matches the name of a system binary - I probably do that intentionally.

And if I EVER need to call grep without my alias - I just prefix it with a backslash: \grep will search with case sensitivity and no color and will scan binaries.

pmarreck · 20 hours ago
I do the same thing, but I also have a command that shows me what functions or scripts might be shadowing other scripts
pmarreck commented on There Will Come Soft Rains (1950) [pdf]   btboces.org/Downloads/7_T... · Posted by u/wallflower
pmarreck · 20 hours ago
August 5, 2026 is the date mentioned in this?

I put a note in my calendar!

pmarreck commented on Code is cheap. Show me the talk   nadh.in/blog/code-is-chea... · Posted by u/ghostfoxgod
overgard · 8 days ago
I asked Codex to write some unit tests for Redux today. At first glance it looked fine, and I continued on. I then went back to add a test by hand, and after looking more closely at the output there were like 50 wtf worthy things scattered in there. Sure they ran, but it was bad in all sorts of ways. And this was just writing something very basic.

This has been my experience almost every time I use AI: superficially it seems fine, once I go to extend the code I realize it's a disaster and I have to clean it up.

The problem with "code is cheap" is that, it's not. GENERATING code is now cheap (while the LLMs are subsidized by endless VC dollars, anyway), but the cost of owning that code is not. Every line of code is a liability, and generating thousands of lines a day is like running up a few thousand dollars of debt on a credit card thinking you're getting free stuff and then being surprised when it gets declined.

pmarreck · 8 days ago
nobody is going to care about your bespoke codework if there is no downstream measurable difference

u/pmarreck

KarmaCake day6348January 26, 2016
About
Software guy (mainly focusing on Elixir, and... Bash?? and now LuaJIT?? Perhaps Lean 4 next?), gamer (board/card/PC/console), philosopher, technologist, former Psych major @ Cornell, sailor, swimmer, biker, scuba diver, music lover (electronica, funk, classical, metal), sometime-partier, philogynist, USAF veteran, and fan of Apple, Tesla, NixOS, open-source, and startups. And that's sort of just the beginning... my mind is fairly voracious. I lean liberal and libertarian, although I love debating anything controversial. Not particularly religious, and on the free will question I am a "metaphysical libertarian incompatibilist."

Physical location: NYC environs

I decided to switch to this more public account from my old alias here, which as of today (2/3/2016) is 2000 days old with 1369 karma.

I am @pmarreck on X/Twitter, https://www.linkedin.com/in/petermarreck/ on linkedin, github.com/pmarreck, peter@marreck.com, you can pattern-match the rest... my first and last names are basically a natural primary key

View Original