return envvar check to function file otherwise, the check might run before SD_ROOT is defined elsewhere
1 file changed, 8 insertions(+), 0 deletions(-)
changed files
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