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