1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-04-21 02:01:50 +02:00

idea for config search

This commit is contained in:
Ryan Greenup 2020-07-25 11:59:28 +10:00
parent 668118f759
commit 0c4ade9fb7

15
bin/00TODOConfig.sh Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
conlook () {
if [[ -f ./.config.json ]]; then
CONFIG="./config.json"
return
elif [[ CONFIG == "" ]]
if [[ "$(pwd)" == "/" ]]; then
CONFIG="~/.config/cadmus/config.json"
else
cd ..
fi
conlook
}