Cleanup repo (a tiny bit) (#1382)

* Delete stale adoc files

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Convert adoc to md

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add adoc to gitignore

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Delete more random unmaintained files

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Markdown lint

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2023-09-04 14:45:33 +02:00
committed by GitHub
parent be761b743b
commit 2f242e0792
17 changed files with 9 additions and 910 deletions
@@ -1,12 +1,11 @@
# Shell completion
== Shell completion
The Substrate cli command supports shell auto-completion. For this to work, you will need to run the completion script matching your build and system.
The Substrate cli command supports shell auto-completion. For this to work, you will need to run the
completion script matching your 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
`source target/release/completion-scripts/substrate.bash`
You can find completion scripts for:
- bash
@@ -17,25 +16,19 @@ You can find completion scripts for:
To make this change persistent, you can proceed as follows:
.First install
[source, shell]
----
```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 your auto-completion script matches the current binary:
[source, shell]
----
```shell
COMPL_DIR=$HOME/.completion
mkdir -p $COMPL_DIR
cp -f target/release/completion-scripts/substrate.bash $COMPL_DIR/
source $HOME/.bash_profile
----
```