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:
parent
668118f759
commit
0c4ade9fb7
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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user