Skip to content

Instantly share code, notes, and snippets.

@SmaugPool
Last active November 29, 2023 11:57
Show Gist options
  • Save SmaugPool/cc7555c852428b981f037dfc663d74bd to your computer and use it in GitHub Desktop.
Save SmaugPool/cc7555c852428b981f037dfc663d74bd to your computer and use it in GitHub Desktop.
cardano-cli Bash auto-completion

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.

@perturbing
Copy link

@SmaugPool you are wonderful, I just found this now, thank you! Will spread the word 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment