Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bash completion #41

Open
OleksiyRudenko opened this issue Jan 23, 2021 · 0 comments
Open

Add bash completion #41

OleksiyRudenko opened this issue Jan 23, 2021 · 0 comments

Comments

@OleksiyRudenko
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant