bash: Commands For Completion
1
1 8.4.6 Letting Readline Type For You
1 -----------------------------------
1
1 'complete (<TAB>)'
1 Attempt to perform completion on the text before point. The actual
1 completion performed is application-specific. Bash attempts
1 completion treating the text as a variable (if the text begins with
1 '$'), username (if the text begins with '~'), hostname (if the text
1 begins with '@'), or command (including aliases and functions) in
1 turn. If none of these produces a match, filename completion is
1 attempted.
1
1 'possible-completions (M-?)'
1 List the possible completions of the text before point. When
1 displaying completions, Readline sets the number of columns used
1 for display to the value of 'completion-display-width', the value
1 of the environment variable 'COLUMNS', or the screen width, in that
1 order.
1
1 'insert-completions (M-*)'
1 Insert all completions of the text before point that would have
1 been generated by 'possible-completions'.
1
1 'menu-complete ()'
1 Similar to 'complete', but replaces the word to be completed with a
1 single match from the list of possible completions. Repeated
1 execution of 'menu-complete' steps through the list of possible
1 completions, inserting each match in turn. At the end of the list
1 of completions, the bell is rung (subject to the setting of
1 'bell-style') and the original text is restored. An argument of N
1 moves N positions forward in the list of matches; a negative
1 argument may be used to move backward through the list. This
1 command is intended to be bound to <TAB>, but is unbound by
1 default.
1
1 'menu-complete-backward ()'
1 Identical to 'menu-complete', but moves backward through the list
1 of possible completions, as if 'menu-complete' had been given a
1 negative argument.
1
1 'delete-char-or-list ()'
1 Deletes the character under the cursor if not at the beginning or
1 end of the line (like 'delete-char'). If at the end of the line,
1 behaves identically to 'possible-completions'. This command is
1 unbound by default.
1
1 'complete-filename (M-/)'
1 Attempt filename completion on the text before point.
1
1 'possible-filename-completions (C-x /)'
1 List the possible completions of the text before point, treating it
1 as a filename.
1
1 'complete-username (M-~)'
1 Attempt completion on the text before point, treating it as a
1 username.
1
1 'possible-username-completions (C-x ~)'
1 List the possible completions of the text before point, treating it
1 as a username.
1
1 'complete-variable (M-$)'
1 Attempt completion on the text before point, treating it as a shell
1 variable.
1
1 'possible-variable-completions (C-x $)'
1 List the possible completions of the text before point, treating it
1 as a shell variable.
1
1 'complete-hostname (M-@)'
1 Attempt completion on the text before point, treating it as a
1 hostname.
1
1 'possible-hostname-completions (C-x @)'
1 List the possible completions of the text before point, treating it
1 as a hostname.
1
1 'complete-command (M-!)'
1 Attempt completion on the text before point, treating it as a
1 command name. Command completion attempts to match the text
1 against aliases, reserved words, shell functions, shell builtins,
1 and finally executable filenames, in that order.
1
1 'possible-command-completions (C-x !)'
1 List the possible completions of the text before point, treating it
1 as a command name.
1
1 'dynamic-complete-history (M-<TAB>)'
1 Attempt completion on the text before point, comparing the text
1 against lines from the history list for possible completion
1 matches.
1
1 'dabbrev-expand ()'
1 Attempt menu completion on the text before point, comparing the
1 text against lines from the history list for possible completion
1 matches.
1
1 'complete-into-braces (M-{)'
1 Perform filename completion and insert the list of possible
1 completions enclosed within braces so the list is available to the
1 shell (⇒Brace Expansion).
1