split helpers into files
1 file changed, 16 insertions(+), 0 deletions(-)
changed files
A functions/__scriptura_new.fish
@@ -0,0 +1,16 @@ +function __scriptura_new --argument-names target + if not path is --type dir (path dirname $target) + mkdir -p $target + end + + if path is --type file $target + echo "Error: $target already exists" + return 1 + end + + printf "%s\n\n" "#!/usr/bin/env fish" >$target + chmod +x $target + + __scriptura_edit $target +end +