emad-elsaid / dirtree

Visualizing files paths as an interactive tree, works nicely with gnu linux tools such as find, ls, or git ls-files
MIT License
118 stars 11 forks source link

Autocompletion #5

Closed akhal3d96 closed 6 years ago

akhal3d96 commented 6 years ago

$ dirtree completion prints dirtree-copletion.bash which can be added as a file to /usr/local/etc/bash_completion.d/dirtree or to be appended to .bashrc file and that will enable the auto-completion feature in bash

Resources: https://github.com/npm/npm/blob/master/lib/utils/completion.sh https://iridakos.com/tutorials/2018/03/01/bash-programmable-completion-tutorial.html https://www.tldp.org/LDP/abs/html/tabexpansion.html

emad-elsaid commented 6 years ago

Yes but how “dirtree completion” prints “dirtree-completion.bash” ?

Emad Elsaid Software Engineer

On 5. Mar 2018, at 6:10 PM, Ahmed Khaled notifications@github.com wrote:

$ dirtree completion prints dirtree-copletion.bash which can be added as a file to /usr/local/etc/bash_completion.d/dirtree or to be appended to .bashrc file and that will enable the auto-completion feature in bash

Resources: https://github.com/npm/npm/blob/master/lib/utils/completion.sh https://iridakos.com/tutorials/2018/03/01/bash-programmable-completion-tutorial.html https://www.tldp.org/LDP/abs/html/tabexpansion.html

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

akhal3d96 commented 6 years ago

dirtree-completion.bash is located at exe directory.

emad-elsaid commented 6 years ago

Yes and? Why invoking “dirtree completion” prints it? That should execute “dirtree” not “dirtree-completion”

Emad Elsaid Software Engineer

On 5. Mar 2018, at 7:28 PM, Ahmed Khaled notifications@github.com wrote:

dirtree-completion.bash is located at exe directory.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

akhal3d96 commented 6 years ago

Executing dirtree completion is supposed to print the bash completion script which are located at exe/dirtree-completion.bash. then it's up to the user whether he wants append this script to his local bash instance at .bashrc or globally /usr/local/etc/bash_completion.d/dirtree.

emad-elsaid commented 6 years ago

Have you tried that command?

Emad Elsaid Software Engineer

On 5. Mar 2018, at 7:33 PM, Ahmed Khaled notifications@github.com wrote:

Executing dirtree completion is supposed to print the bash completion script which are located at exe/dirtree-completion.bash. then it's up to the user whether he wants append this script to his local bash instance at .bashrc or globally /usr/local/etc/bash_completion.d/dirtree.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

akhal3d96 commented 6 years ago

Yes of course!