Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1# Disable files from being included in completions by default2complete --command bitcoin-util --no-files4# Extract options5function __fish_bitcoin_util_get_options6set --local cmd (commandline -opc)[1]7set --local options9set --append options ($cmd -help 2>&1 | string match -r '^ -.*' | string replace -r ' -' '-' | string replace -r '=.*' '=')11for option in $options12echo $option13end14end16# Extract commands17function __fish_bitcoin_util_get_commands18set --local cmd (commandline -opc)[1]19set --local commands21set --append commands ($cmd -help | sed -e '1,/Commands:/d' -e 's/=/=\t/' -e 's/(=/=/' -e '/^ [a-z]/ p' -e d | string replace -r '\ \ ' '')22for command in $commands23echo $command24end25end27# Add options28complete \29--command bitcoin-util \30--condition "not __fish_seen_subcommand_from (__fish_bitcoin_util_get_commands)" \31--arguments "(__fish_bitcoin_util_get_options)"33# Add commands34complete \35--command bitcoin-util \36--condition "not __fish_seen_subcommand_from (__fish_bitcoin_util_get_commands)" \37--arguments "(__fish_bitcoin_util_get_commands)"
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.