TIL: do not set BASH_COMPLETION_COMPAT_DIR and instead place your #bash completion files in ~/.local/share/bash-completion/completions/ to load them lazily.
TIL: do not set BASH_COMPLETION_COMPAT_DIR and instead place your #bash completion files in ~/.local/share/bash-completion/completions/ to load them lazily.
Управление сервером со смартфона
Из любого SSH-клиента можно установить канал с сервером и управлять им стандартными командами в консоли. Есть такие клиенты и для смартфона. Многие знают и используют консоль Termux под Android, которая запускает с телефона стандартный OpenSSH. Но есть варианты ещё удобнее, даже с графическим интерфейсом.
https://habr.com/ru/companies/ruvds/articles/824352/
#ruvds_статьи #RebootX_OnPrem #RebootX #Amazon_Web_Services #AWS #Microsoft_Azure #Clever_Cloud #Google_Cloud #GCP #OVH #Scaleway #Grafana #OpenAPI_Specification #SwaggerUI #Docker_Compose #swellsh #Bash #Tmux #Termux #bashcompletion #Webmin
Released command_kit-completion 0.2.0 with minor improvements to how it automatically identifies types of arguments.
https://github.com/postmodern/command_kit-completion/releases/tag/v0.2.0
https://github.com/postmodern/command_kit-completion#readne
#ruby #cli #command_kit #bashcompletion
TIL Fedora's bash completion rules for `nc` / `netcat` uses the bash completion function `_known_hosts_real` which lists all hosts from ssh's known_hosts file(s) and `avahi-browse`.
#bashcompletion #fedora
Released command_kit 0.5.0 which adds the CommandKit::Completion::Install module for installing bash, zsh, or fish shell completion files.
https://github.com/postmodern/command_kit.rb/releases/tag/v0.5.0
#ruby #cli #bashcompletion #command_kit #commandkit #bash #zsh #fishshell
Ah ha, I figured out how to load bash completions into zsh:
1. The completion file name must start with with a `_` character.
2. The completion file must be installed into `/usr/local/share/zsh/site-functions/`.
3. The completion file must start with the lines `#compdef command-name-here`.
4. You must enable and call the `compinit` and `bashcompinit` modules/commands in your `~/.zshrc`.
If any of those things are missing, the completions won't load/work.
#zsh #bashcompletion
What would be a good defacto directory for gems to store their shell completion files?
#ruby #shellcompletion #bashcompletion #rubygems
Released command_kit-completion 0.1.0. Automatically generates shell completion rules for a command_kit CLI app.
https://github.com/postmodern/command_kit-completion#readme
#ruby #command_kit #bashcompletion #shellcompletion #cli
How would/should a Ruby CLI install it's own custom shell completion rules? A global option that prints the completion script out? A global option that attempts to install the completion script into the correct shell directory, based on shell and whether the user is root or not. Or maybe a sub-command that prints and/or installs the shell completion script?
I kind of wish rubygems had support for installing custom completion rules.
#ruby #shellcompletion #bashcompletion
Code spike that generates bash/zsh completions for command_kit CLI classes options and their sub-commands. Uses the awesome 'completely' gem.
https://github.com/postmodern/command_kit-completion#readme
#ruby #bashcompletion #command_kit
Is there a universally recognized file name for a project's shell completions? Where should I default to putting those?
#bashcompletion #bash