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 bitcoind --no-files4# Extract options5function __fish_bitcoind_get_options6argparse 'nofiles' -- $argv7set --local cmd (commandline -opc)[1]8set --local options10if set -q _flag_nofiles11set --append options ($cmd -help-debug | string match -r '^ -.*' | string replace -r ' -' '-' | string replace -r '=.*' '=' | string match --invert -r '^.*=$')12else13set --append options ($cmd -help-debug | string match -r '^ -.*' | string replace -r ' -' '-' | string replace -r '=.*' '=' | string match -r '^.*=$')14end16for option in $options17echo $option18end19end22# Add options with file completion23complete \24--command bitcoind \25--arguments "(__fish_bitcoind_get_options)"26# Enable file completions only if the commandline now contains a `*.=` style option27complete --command bitcoind \28--condition 'string match --regex -- ".*=" (commandline -pt)' \29--force-files31# Add options without file completion32complete \33--command bitcoind \34--arguments "(__fish_bitcoind_get_options --nofiles)"
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.