Answer the question
In order to leave comments, you need to log in
How to make entry by TAB in linux terminal?
I do not understand how the function execution works when pressing tab in the terminal.
For example, I want to write a utility with nested functionality.
[email protected]:~$ main [нажатие TAB]
snapshot save send
[email protected]:~$ main snapshot [нажатие TAB]
-d --dir Каталог [./]
-n --name Имя "Снимок"
Answer the question
In order to leave comments, you need to log in
bash completion is a large library of functions that can tab-complete
* alias
names * function
names * variable names
* command names
* filesystem paths
* options for some commands.
You can read the documentation on how to add an addon for your own commands - https://www.gnu.org/software/bash/manual/html_node...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question