all repos — scriptura @ v0.3.0

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 --description 'Run a script' --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