Provide bash-completion an aliases for availale sequences including installation script
This commit is contained in:
23
README.md
23
README.md
@@ -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.
|
||||
|
Reference in New Issue
Block a user