lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

55
active users

#zsh

3 posts3 participants0 posts today

And by the way, I guess I’ll be sticking with #Zsh. I still need to make some adjustments but it’s meeting all my needs. Of course I still **have** #Bash. I still run bash scripts. But human interaction now happens in zsh.

The fact that @b0rk uses #Fish makes me curious, but it’s too soon to look at yet another shell.

Figured out a nice terminal timer!

I find timers incredibly irritating, especially when they keep ringing until you turn them off, which is the case for most of them. I also prefer my tea steeped for an exact period of time.

I figured out how to get a timer in my terminal that rings only once, and I added it to my “grimoire” collection of useful scripts I recently started:

reillyspitzfaden.com/code/#gri

Pixel art of a radio tower and floppy disk, with pixel art text reading 'Reilly Spitzfaden'
reillyspitzfaden.comReilly Spitzfaden, Composer | Code
#Zsh#Bash#Terminal

#Poll: Curious about people's attitudes towards shell scripting.

Two part question:

  1. Are you a DEVeloper (or working in a development-heavy role), OTHER-IT worker (such as a sysadmin, architect, anything in a non-development-heavy role), or NON-IT (accountant, doctor, whatever)
  2. Do you HATE shell scripting, are you INDIFferent towards (or ignorant of) shell scripting, or do you LOVE it?

Can we please have one standard way to define shell completions, that is compatible with all shells?

I'm moving from zsh to nushell, and it's relatively new, and you have to configure completions by writing a lot of code, including a lot of files, it's a nightmare.

It's easier for older shells like zsh or fish only because other people already done it, and some packages include per-shell completions.

There is @carapace_sh which attempts to do the right thing, but having completions in the other place than actual app is not very good idea.

usage.jdx.dev/ is trying to do the same but differently, and it has a way for an app to provide a schema for completions. This is step in the right direction, but not many tools support this.

Has anyone tried to put this somehow on the shell level? E.q. app includes a file like `myapp.completions` , and shell have a module which reads the file and generates a list of completions based on user input.

The right way to do this, is probably by defining a standard cross-platform/cross-shell schema. And it can be read by the shell, or by the tool like carapace or usage...

usage.jdx.devUsageSchema for CLIs
#Linux#zsh#bash