all repos — scriptura @ eea12c75e45b3ad7b76dfb89861fea82cad01c04

a corner in $HOME for your scripts

split helpers into files

Alan Pearce
commit

eea12c75e45b3ad7b76dfb89861fea82cad01c04

parent

fd61ac887fd4160094757c843ca55cbe1a49f552

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 +