Skip to content

Add bash completion #41

@OleksiyRudenko

Description

@OleksiyRudenko

Sources:

  1. https://askubuntu.com/questions/280327/how-to-make-terminal-autocomplete-when-there-are-several-files-directory
  2. https://unix.stackexchange.com/questions/55203/bash-autocomplete-first-list-files-then-cycle-through-them
  3. https://unix.stackexchange.com/questions/16921/make-bashs-tab-completion-fill-in-first-match/16926#16926

From [1]:

# ~/.inputrc
# mappings to have up and down arrow searching through history:
"\e[A": history-search-backward
"\e[B": history-search-forward
# mappings to have left and right arrow go left and right: 
"\e[C": forward-char
"\e[D": backward-char

# mapping to have [Tab] and [Shift]+[Tab] to cycle through all the possible completions:
"\t": menu-complete
"\e[Z": menu-complete-backward

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions