Support installation to different directoy
Introduce configuration file to set a custom seqs collection
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user