Skip to main content
Commonmark migration
Source Link
complete (TAB)
       Attempt to perform completion on the text  before  point.   Bash
       attempts completion treating the text as a variable (if the text
       begins with $), username (if the text begins with  ~),  hostname
       (if  the  text begins with @), or command (including aliases and
       functions) in turn.  If none of these produces a match, filename
       completion is attempted.
  
complete-command (M-!)
       Attempt  completion  on  the text before point, treating it as a
       command name.  Command completion attempts  to  match  the  text
       against   aliases,   reserved   words,  shell  functions,  shell
       builtins, and finally executable filenames, in that order.
complete (TAB)
       Attempt to perform completion on the text  before  point.   Bash
       attempts completion treating the text as a variable (if the text
       begins with $), username (if the text begins with  ~),  hostname
       (if  the  text begins with @), or command (including aliases and
       functions) in turn.  If none of these produces a match, filename
       completion is attempted.
 complete-command (M-!)
       Attempt  completion  on  the text before point, treating it as a
       command name.  Command completion attempts  to  match  the  text
       against   aliases,   reserved   words,  shell  functions,  shell
       builtins, and finally executable filenames, in that order.
complete (TAB)
       Attempt to perform completion on the text  before  point.   Bash
       attempts completion treating the text as a variable (if the text
       begins with $), username (if the text begins with  ~),  hostname
       (if  the  text begins with @), or command (including aliases and
       functions) in turn.  If none of these produces a match, filename
       completion is attempted.
 
complete-command (M-!)
       Attempt  completion  on  the text before point, treating it as a
       command name.  Command completion attempts  to  match  the  text
       against   aliases,   reserved   words,  shell  functions,  shell
       builtins, and finally executable filenames, in that order.
updates
Source Link
mr.spuratic
  • 10.4k
  • 29
  • 46

Update: the current dev-releasenew release of bash v5-5.0 adds complete -I(Jan 2019) adds complete -I for exactly this problem.

The relevant readline commands are:

Update: the current dev-release of bash v5 adds complete -I for exactly this problem.

Update: the new release of bash-5.0 (Jan 2019) adds complete -I for exactly this problem.

The relevant readline commands are:

bash 5 dev link
Source Link
mr.spuratic
  • 10.4k
  • 29
  • 46

Update: the current dev-release of bash v5 adds complete -I for exactly this problem.

Update: the current dev-release of bash v5 adds complete -I for exactly this problem.

Bounty Awarded with 200 reputation awarded by derobert
Source Link
mr.spuratic
  • 10.4k
  • 29
  • 46
Loading