all repos — scriptura @ 64c2dc9a3c2d471671c31ef38f5fb1f0e8dec0f7

a corner in $HOME for your scripts

return envvar check to function file otherwise, the check might run before SD_ROOT is defined elsewhere

Alan Pearce
commit

64c2dc9a3c2d471671c31ef38f5fb1f0e8dec0f7

parent

eea12c75e45b3ad7b76dfb89861fea82cad01c04

1 file changed, 8 insertions(+), 0 deletions(-)

changed files
M functions/scriptura.fishfunctions/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