mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
1e01162505
* Remove unneeded script * Rename Substrate Demo -> Substrate * Rename demo -> node * Build wasm from last rename. * Merge ed25519 into substrate-primitives * Minor tweak * Rename substrate -> core * Move substrate-runtime-support to core/runtime/support * Rename/move substrate-runtime-version * Move codec up a level * Rename substrate-codec -> parity-codec * Move environmental up a level * Move pwasm-* up to top, ready for removal * Remove requirement of s-r-support from s-r-primitives * Move core/runtime/primitives into core/runtime-primitives * Remove s-r-support dep from s-r-version * Remove dep of s-r-support from bft * Remove dep of s-r-support from node/consensus * Sever all other core deps from s-r-support * Forgot the no_std directive * Rename non-SRML modules to sr-* to avoid match clashes * Move runtime/* to srml/* * Rename substrate-runtime-* -> srml-* * Move srml to top-level
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
|
|
== Shell completion
|
|
|
|
The Substrate cli command supports shell auto-completion. For this to work, you will need to run the completion script matching you build and system.
|
|
|
|
Assuming you built a release version using `cargo build --release` and use `bash` run the following:
|
|
|
|
[source, shell]
|
|
source target/release/completion-scripts/substrate.bash
|
|
|
|
You can find completion scripts for:
|
|
- bash
|
|
- fish
|
|
- zsh
|
|
- elvish
|
|
- powershell
|
|
|
|
To make this change persistent, you can proceed as follow:
|
|
|
|
.First install
|
|
|
|
[source, shell]
|
|
----
|
|
COMPL_DIR=$HOME/.completion
|
|
mkdir -p $COMPL_DIR
|
|
cp -f target/release/completion-scripts/substrate.bash $COMPL_DIR/
|
|
echo "source $COMPL_DIR/substrate.bash" >> $HOME/.bash_profile
|
|
source $HOME/.bash_profile
|
|
----
|
|
|
|
.Update
|
|
|
|
When you build a new version of Substrate, the following will ensure you auto-completion script matches the current binary:
|
|
|
|
[source, shell]
|
|
----
|
|
COMPL_DIR=$HOME/.completion
|
|
mkdir -p $COMPL_DIR
|
|
cp -f target/release/completion-scripts/substrate.bash $COMPL_DIR/
|
|
source $HOME/.bash_profile
|
|
----
|