Closed akhal3d96 closed 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.
dirtree-completion.bash
is located at exe
directory.
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.
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
.
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.
Yes of course!
$ dirtree completion
printsdirtree-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 bashResources: 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