Support installation to different directoy

Introduce configuration file to set a custom seqs collection
This commit is contained in:
2022-03-07 00:15:27 +01:00
parent 56765a0884
commit b894a756ea
5 changed files with 87 additions and 18 deletions

View File

@@ -1,9 +1,11 @@
#!/bin/bash
# Get script working directory
WDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >>/dev/null 2>&1 && pwd)"
_sequencerCompletion() {
local SEQBASE="/opt/sequencer"
local SEQCOMP_LOC="$SEQBASE/sqnall-completion.bash"
local SEQCOMP_LOADER="$(realpath ~/.bashrc)"
local SEQCOMP_LOC="${WDIR}/sqnall-completion.bash"
local SEQCOMP_LOADER="$HOME/.bashrc)"
local SEQCOMP_SOURCE="source \"$SEQCOMP_LOC\""
grep "$SEQCOMP_SOURCE" "$SEQCOMP_LOADER" >>/dev/null 2>&1