To enable cardano-cli
and cardano-node
bash auto-completion for the current shell:
source <(cardano-cli --bash-completion-script cardano-cli)
source <(cardano-cli --bash-completion-script cardano-node)
To enable it for all future sessions:
cardano-cli --bash-completion-script cardano-cli | sudo tee /etc/bash_completion.d/cardano-cli
cardano-cli --bash-completion-script cardano-node | sudo tee /etc/bash_completion.d/cardano-node
Then log out and log in again, or run source ~/.bashrc
.
@SmaugPool you are wonderful, I just found this now, thank you! Will spread the word 👍