all repos — scriptura @ baa93ca20f6525c97091d5ece5861d4526b5591c

a corner in $HOME for your scripts

functions/__scriptura_run.fish (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
function __scriptura_run --argument-names target
    if path is --perm exec $target
        set --export SCRIPTURA_ROOT $SCRIPTURA_ROOT
        set --export SD (path dirname $target)
        $target $argv[2..]
        return $status
    else
        echo "scriptura: $target is not executable" >&2
        __scriptura_cat $target
        return $status
    end
end