Provide bash-completion an aliases for availale sequences including installation script

This commit is contained in:
2021-04-15 14:54:29 +02:00
parent 2872901924
commit 37069952d4
4 changed files with 139 additions and 19 deletions

View File

@@ -37,3 +37,26 @@ use the simple bash installation script in the repository:
```
curl -L https://winklerfamilie.eu/git/efelon/shell_sequencer/raw/branch/master/install.sh | bash
```
## Bash-completion
The included optional bash-completion script `sqnall-completion.bash` provides aliases to all available sequences as well as completion for sequencer.sh options and steps (including aliases) individually for each sequence. The aliases have the prefix `sqn_` which stands for _sequence name_.
After executing
```
source /opt/sequencer/sqnall-completion.bash
```
e.g. `/opt/sequencer/seqs/kodi.sh` can be started anyhere with `sqn_kodi`
### Automatic setup after login
To automatically provide aliases and bash-completion after login, the following bash script needs to be executed once for each user separately:
```
source /opt/sequencer/installCompletion.sh
```
This sources the bash-completion script in the users .bashrc file.