all repos — scriptura @ e2bef6abcb519abcc37d0024d08319b20f76d6b1

a corner in $HOME for your scripts

print which variable was used to define SCRIPTURA_ROOT

Alin
commit

e2bef6abcb519abcc37d0024d08319b20f76d6b1

parent

db065bc49d2639788545b2e9060d45c82e78c99c

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M tests/scriptura.fishtests/scriptura.fish
@@ -27,7 +27,7 @@ set --erase SCRIPTURA_ROOT
set --erase SD_ROOT source $(status dirname)/../functions/scriptura.fish scriptura -) = "\$SCRIPTURA_ROOT $HOME/sd does not exist, use `scriptura new` to create it" +) = "SCRIPTURA_ROOT $HOME/sd does not exist, use `scriptura new` to create it" # Test: SCRIPTURA_ROOT uses SD_ROOT when set @test "SCRIPTURA_ROOT uses SD_ROOT when set" (
@@ -35,7 +35,7 @@ set --erase SCRIPTURA_ROOT
set --global --export SD_ROOT "/custom/sd" source $(status dirname)/../functions/scriptura.fish scriptura -) = "\$SCRIPTURA_ROOT /custom/sd does not exist, use `scriptura new` to create it" +) = "SD_ROOT /custom/sd does not exist, use `scriptura new` to create it" # Test: SCRIPTURA_ROOT uses existing value when set @test "SCRIPTURA_ROOT uses existing value when set" (
@@ -43,7 +43,7 @@ set --global --export SCRIPTURA_ROOT "/existing/root"
set --global --export SD_ROOT "/custom/sd" source $(status dirname)/../functions/scriptura.fish scriptura -) = "\$SCRIPTURA_ROOT /existing/root does not exist, use `scriptura new` to create it" +) = "SCRIPTURA_ROOT /existing/root does not exist, use `scriptura new` to create it" # Test: usage is shown when no arguments provided @test "usage is shown when no arguments provided" -n (