home.social

#bashcompletion — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bashcompletion, aggregated by home.social.

  1. Inspired by a very insightful post by @dlakelan I'm finally getting around to asking about a CLI issue I'm having.

    Apparently xmms2 doesn't have tab completion out of the box. My distro is Mint 22.1. So far I figured out that I need to add a text file for it to /usr/share/bash-completion/completions/. Weirdly there's already one for regular xmms. So I found one at:

    gist.github.com/ektich/3702fd8

    And added it to the directory but still no luck. I feel like I'm missing something basic but what is it??

    #Linux #xmms2 #BashCompletion #BASH #CLI

    mastodon.sdf.org/@dlakelan/116

  2. Inspired by a very insightful post by @dlakelan I'm finally getting around to asking about a CLI issue I'm having.

    Apparently xmms2 doesn't have tab completion out of the box. My distro is Mint 22.1. So far I figured out that I need to add a text file for it to /usr/share/bash-completion/completions/. Weirdly there's already one for regular xmms. So I found one at:

    gist.github.com/ektich/3702fd8

    And added it to the directory but still no luck. I feel like I'm missing something basic but what is it??

    #Linux #xmms2 #BashCompletion #BASH #CLI

    mastodon.sdf.org/@dlakelan/116

  3. Inspired by a very insightful post by @dlakelan I'm finally getting around to asking about a CLI issue I'm having.

    Apparently xmms2 doesn't have tab completion out of the box. My distro is Mint 22.1. So far I figured out that I need to add a text file for it to /usr/share/bash-completion/completions/. Weirdly there's already one for regular xmms. So I found one at:

    gist.github.com/ektich/3702fd8

    And added it to the directory but still no luck. I feel like I'm missing something basic but what is it??

    #Linux #xmms2 #BashCompletion #BASH #CLI

    mastodon.sdf.org/@dlakelan/116

  4. Inspired by a very insightful post by @dlakelan I'm finally getting around to asking about a CLI issue I'm having.

    Apparently xmms2 doesn't have tab completion out of the box. My distro is Mint 22.1. So far I figured out that I need to add a text file for it to /usr/share/bash-completion/completions/. Weirdly there's already one for regular xmms. So I found one at:

    gist.github.com/ektich/3702fd8

    And added it to the directory but still no luck. I feel like I'm missing something basic but what is it??

    #Linux #xmms2 #BashCompletion #BASH #CLI

    mastodon.sdf.org/@dlakelan/116

  5. Inspired by a very insightful post by @dlakelan I'm finally getting around to asking about a CLI issue I'm having.

    Apparently xmms2 doesn't have tab completion out of the box. My distro is Mint 22.1. So far I figured out that I need to add a text file for it to /usr/share/bash-completion/completions/. Weirdly there's already one for regular xmms. So I found one at:

    gist.github.com/ektich/3702fd8

    And added it to the directory but still no luck. I feel like I'm missing something basic but what is it??

    #Linux #xmms2 #BashCompletion #BASH #CLI

    mastodon.sdf.org/@dlakelan/116

  6. 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.

    #completion #bashcompletion

  7. Управление сервером со смартфона

    Из любого SSH-клиента можно установить канал с сервером и управлять им стандартными командами в консоли. Есть такие клиенты и для смартфона. Многие знают и используют консоль Termux под Android, которая запускает с телефона стандартный OpenSSH. Но есть варианты ещё удобнее, даже с графическим интерфейсом.

    habr.com/ru/companies/ruvds/ar

    #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

  8. Управление сервером со смартфона

    Из любого SSH-клиента можно установить канал с сервером и управлять им стандартными командами в консоли. Есть такие клиенты и для смартфона. Многие знают и используют консоль Termux под Android, которая запускает с телефона стандартный OpenSSH. Но есть варианты ещё удобнее, даже с графическим интерфейсом.

    habr.com/ru/companies/ruvds/ar

    #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

  9. Управление сервером со смартфона

    Из любого SSH-клиента можно установить канал с сервером и управлять им стандартными командами в консоли. Есть такие клиенты и для смартфона. Многие знают и используют консоль Termux под Android, которая запускает с телефона стандартный OpenSSH. Но есть варианты ещё удобнее, даже с графическим интерфейсом.

    habr.com/ru/companies/ruvds/ar

    #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

  10. 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

  11. Released command_kit 0.5.0 which adds the CommandKit::Completion::Install module for installing bash, zsh, or fish shell completion files.
    github.com/postmodern/command_
    #ruby #cli #bashcompletion #command_kit #commandkit #bash #zsh #fishshell

  12. Released command_kit 0.5.0 which adds the CommandKit::Completion::Install module for installing bash, zsh, or fish shell completion files.
    github.com/postmodern/command_
    #ruby #cli #bashcompletion #command_kit #commandkit #bash #zsh #fishshell

  13. Released command_kit 0.5.0 which adds the CommandKit::Completion::Install module for installing bash, zsh, or fish shell completion files.
    github.com/postmodern/command_
    #ruby #cli #bashcompletion #command_kit #commandkit #bash #zsh #fishshell

  14. Released command_kit 0.5.0 which adds the CommandKit::Completion::Install module for installing bash, zsh, or fish shell completion files.
    github.com/postmodern/command_
    #ruby #cli #bashcompletion #command_kit #commandkit #bash #zsh #fishshell

  15. 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

  16. What would be a good defacto directory for gems to store their shell completion files?
    #ruby #shellcompletion #bashcompletion #rubygems

  17. 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

  18. Code spike that generates bash/zsh completions for command_kit CLI classes options and their sub-commands. Uses the awesome 'completely' gem.
    github.com/postmodern/command_
    #ruby #bashcompletion #command_kit

  19. Code spike that generates bash/zsh completions for command_kit CLI classes options and their sub-commands. Uses the awesome 'completely' gem.
    github.com/postmodern/command_
    #ruby #bashcompletion #command_kit

  20. Code spike that generates bash/zsh completions for command_kit CLI classes options and their sub-commands. Uses the awesome 'completely' gem.
    github.com/postmodern/command_
    #ruby #bashcompletion #command_kit

  21. Code spike that generates bash/zsh completions for command_kit CLI classes options and their sub-commands. Uses the awesome 'completely' gem.
    github.com/postmodern/command_
    #ruby #bashcompletion #command_kit

  22. Code spike that generates bash/zsh completions for command_kit CLI classes options and their sub-commands. Uses the awesome 'completely' gem.
    github.com/postmodern/command_
    #ruby #bashcompletion #command_kit

  23. Is there a universally recognized file name for a project's shell completions? Where should I default to putting those?
    #bashcompletion #bash