[HN Gopher] Bash's sadly flawed smart (programmable) completion
       ___________________________________________________________________
        
       Bash's sadly flawed smart (programmable) completion
        
       Author : soraminazuki
       Score  : 29 points
       Date   : 2024-04-10 16:22 UTC (1 days ago)
        
 (HTM) web link (utcc.utoronto.ca)
 (TXT) w3m dump (utcc.utoronto.ca)
        
       | soraminazuki wrote:
       | I wonder what the author thinks of zsh. Unlike bash, zsh
       | completion just works. It's context-aware, properly completes
       | subcommands and options, and doesn't suffer from the problem
       | explained in the article. It even shows descriptions for each of
       | the completion candidates.
       | 
       | In contrast, bash almost always falls back to filename completion
       | for the most common commands even when third party frameworks
       | like bash-completion are installed. It's frustrating when I have
       | to deal with interactive bash sessions because, _sigh_ , Docker.
        
         | siproprio wrote:
         | yeah, zsh is just superior. it can even emulate bash!
        
       | mdaniel wrote:
       | wow, the discipline required to blog every day with that much
       | substance
        
       | nullc wrote:
       | Bash's completion has caused me to waste a lot of time operating
       | on the wrong file because it "knew" something was the only match
       | based on the format when it really wasn't.
       | 
       | Didn't know about M-/ -- handy to have a solution that works on
       | other people's systems.
        
         | gkfasdfasdf wrote:
         | What key-combination produces M-/?
        
           | smegsicle wrote:
           | alt + slash, with any luck
        
       | pulpfictional wrote:
       | https://github.com/akinomyoga/ble.sh
       | 
       | This revolutionizes Bash's user experience.
        
       | 1oooqooq wrote:
       | i just spent hours trying to hack systemclt's autocomplete sonit
       | lists service names case insensitively (because they have less
       | consistency than php methods)... only to be stoped by a hack that
       | was already in place for something else on the original files
       | that called the builtins methods again and then it became too
       | hacky.
        
       ___________________________________________________________________
       (page generated 2024-04-11 23:02 UTC)