mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-07 14:46:39 +02:00
idea for config search
This commit is contained in:
15
bin/00TODOConfig.sh
Normal file
15
bin/00TODOConfig.sh
Normal 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
|
||||||
|
}
|
Reference in New Issue
Block a user