add cmd subcommand
1 file changed, 15 insertions(+), 0 deletions(-)
changed files
A functions/__scriptura_cmd.fish
@@ -0,0 +1,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