return envvar check to function file otherwise, the check might run before SD_ROOT is defined elsewhere
2 files changed, 8 insertions(+), 7 deletions(-)
changed files
D conf.d/scriptura-config.fish
@@ -1,7 +0,0 @@ -if not set --query SCRIPTURA_ROOT - if set --query SD_ROOT - set --global SCRIPTURA_ROOT $SD_ROOT - else - set --global SCRIPTURA_ROOT "$HOME/sd" - end -end
M functions/scriptura.fish → functions/scriptura.fish
@@ -1,3 +1,11 @@ +if not set --query SCRIPTURA_ROOT + if set --query SD_ROOT + set --global SCRIPTURA_ROOT $SD_ROOT + else + set --global SCRIPTURA_ROOT "$HOME/sd" + end +end + function scriptura argparse --stop-nonopt h/help n/new e/edit w/which c/cat -- $argv or return