Support installation to different directoy
Introduce configuration file to set a custom seqs collection
This commit is contained in:
27
README.md
27
README.md
@@ -32,12 +32,16 @@ ln -s /opt/sequencer/seqs /opt
|
||||
```
|
||||
or
|
||||
|
||||
use the simple bash installation script in the repository:
|
||||
use the simple bash installation script in the repository which installs git and performs the steps above:
|
||||
|
||||
```
|
||||
curl -L https://winklerfamilie.eu/git/efelon/shell_sequencer/raw/branch/master/install.sh | bash
|
||||
```
|
||||
|
||||
You may override the default installation path `/opt/sequencer` by appending `-s /custom/path` to the command above:
|
||||
|
||||
e.g. `curl -L https://winklerfamilie.eu/git/efelon/shell_sequencer/raw/branch/master/install.sh | bash -s /usr/lib/sequencer`
|
||||
|
||||
## 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_.
|
||||
@@ -50,6 +54,19 @@ source /opt/sequencer/sqnall-completion.bash
|
||||
|
||||
e.g. `/opt/sequencer/seqs/kodi.sh` can be started anyhere with `sqn_kodi`
|
||||
|
||||
### Custom sequence directory
|
||||
|
||||
To control which seqs are available for bash-completion, copy `sequencer.cfg.dist` to `sequencer.cfg` and adjust the value of the variable `SEQUENCER_USER_SEQS`.
|
||||
|
||||
To make these changes active run the following commands. You don't need the last step if you already used `installCompletion.sh`.
|
||||
|
||||
```
|
||||
unalias -a
|
||||
source ~/.bashrc
|
||||
source /opt/sequencer/sqnall-completion.bash
|
||||
```
|
||||
|
||||
or simply logout from the current session and login again.
|
||||
|
||||
### Automatic setup after login
|
||||
|
||||
@@ -60,3 +77,11 @@ source /opt/sequencer/installCompletion.sh
|
||||
```
|
||||
|
||||
This sources the bash-completion script in the users .bashrc file.
|
||||
|
||||
## Default text editor
|
||||
|
||||
Sequencer uses the Debian alternatives system to the select which editor to use. To change the default editor, which by default is most likely _nano_:
|
||||
|
||||
```
|
||||
update-alternatives --config editor
|
||||
```
|
||||
|
Reference in New Issue
Block a user