News for hackers. Stuff that matters.
Re:Scripts I wrote that I use all the time by idoubtit on Wednesday October 22, 2025 @08:29PM (#45676857)
Other examples where native features are better than these self-made scripts...

> vim [...] I select a region and then run :'<,'>!markdownquote

Just select the first column with ctrl-v, then "i> " then escape. That's 4 keys after the selection, instead of 20.

> u+ 2025 returns ñ, LATIN SMALL LETTER N WITH TILDE

`unicode` is widely available, has a good default search, and many options. BTW, I wonder why "2025" matched "ñ".

     unicode ñ
    U+00F1 LATIN SMALL LETTER N WITH TILDE
    UTF-8: c3 b1 UTF-16BE: 00f1 Decimal: &#241; Octal: \0361
> catbin foo is basically cat "$(which foo)"

Since the author is using zsh, `cat =foo` is shorter and more powerful. It's also much less error-prone with long commands, since zsh can smartly complete after =.

I use it often, e.g. `file =firefox` or `vim =myscript.sh`.

Re:Scripts I wrote that I use all the time by oneeyedpigeon on Thursday October 23, 2025 @05:40AM (#45680001)
> `unicode` is widely available

It's not installed by default on macOS or Ubuntu, for me.

Re:Scripts I wrote that I use all the time by pmontra on Thursday October 23, 2025 @09:49AM (#45681799)
You are right but

  $ unicode
  Command 'unicode' not found, but can be installed with:
  sudo apt install unicode
and it did. So it really was available. That's Debian 11.