Since I install datalad tab completion hasn’t work with datalad commands, when I press the tab key nothing happens. I can use it to autocomplete paths to files involved in a datalad commands but not for the command itself. It works fine with other commands such as git commands. According to the datalad documentation:
Tab-completion will autocomplete a DataLad command, options you give to it, or paths.
here is how I did it and it seems to work (prompt got a bit weird): untitled - asciinema after I did source <(datalad shell-completion) in a bash shell
Thanks, after some tweaking I got it working. I had to install argcomplete: pip install argcomplete
and then run the shell completion script as you indicated: source <(datalad shell-completion)
I guess that in order to make it permanent I would have to add it to my .bashrc file: datalad shell-completion >> ~/.bashrc