all repos — scriptura @ v0.2.0

a corner in $HOME for your scripts

functions/__scriptura_cmd.fish (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function __scriptura_cmd --argument-names target --description "Execute shell command from target directory"
    pushd $SCRIPTURA_ROOT

    argparse --move-unknown -- $argv[2..]

    if path is --type file $target
        eval $argv $argv_opts $target
    else
        pushd $target
        eval $argv $argv_opts
        popd
    end

    popd
end