Readit News logoReadit News
sanewombat commented on Writing simple tab-completions for Bash and Zsh   mill-build.org/blog/14-ba... · Posted by u/lihaoyi
homebrewer · 19 days ago
With fish, if the program you're interested in hasn't betrayed the decades-old tradition of shipping man pages, it's often as simple as running `fish_update_completions`.

It parses all man pages on your system and generates completion files for you. By default, they go into ~/.cache/fish/generated_completions/*

If the man page was written poorly/is missing, you can always write your own completion (and hopefully send it upstream). fish uses such a simple format that I don't think there's any need for tutorials save the official doc:

https://fishshell.com/docs/current/completions.html

For example, here's an excerpt from curl

  complete --command curl --short-option 'L' --long-option 'location' --description 'Follow redirects' 
  complete --command curl --short-option 'O' --long-option 'remote-name' --description 'Write output to file named as remote file'

sanewombat · 19 days ago
It's surprising that on OpenSUSE `zypper search fish-completion` returns more than 200 packages. Something is fishy here.
sanewombat commented on Docker limits unauthenticated pulls to 10/HR/IP from Docker Hub, from March 1   docs.docker.com/docker-hu... · Posted by u/todsacerdoti
xvilka · 6 months ago
Podman[1] is the answer.

[1] https://podman.io

sanewombat · 6 months ago
To elaborate on this, podman allows specifying mirrors, as described in https://github.com/containers/image/blob/main/docs/container...

So the source of the image can be decided on pull. Some more on this https://www.redhat.com/en/blog/manage-container-registries

u/sanewombat

KarmaCake day3February 21, 2025View Original