-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44d0d1b
commit 9ff55cf
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#shellcheck disable=2148,2015 | ||
### [=]==================================[=] | ||
### [~].......... SHELLFISH | ||
### [=]==================================[=] | ||
|
||
SHELLFISHRC="${SHELLFISHRC:-${HOME}/.shellfishrc}" | ||
SHELLFISH_CONFIG_DIR="${SHELLFISH_CONFIG_DIR:-${XDG_CONFIG_HOME:-${HOME}/.config}/shellfish}" | ||
export SHELLFISHRC SHELLFISH_CONFIG_DIR | ||
|
||
if [[ -n "${LC_TERMINAL}" ]]; then | ||
if [[ -f "${SHELLFISHRC}" ]]; then | ||
if [[ ! -d "${SHELLFISH_CONFIG_DIR}" ]]; then | ||
mkdir -pv "${SHELLFISH_CONFIG_DIR}" | ||
fi | ||
source "${SHELLFISHRC}" || echo "cant source shellfishrc" | ||
else | ||
unset SHELLFISHRC SHELLFISH_CONFIG_DIR | ||
fi | ||
fi | ||
|