X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=Scripts%2Fvish;fp=Scripts%2Fvish;h=6587c3430b0860e759b5844d667265d176812c9f;hp=0000000000000000000000000000000000000000;hb=2894bed4452f6e6f781f8d3b84f6ad6bd40a1e62;hpb=fbb59f2fad421264e4703357595ded05998788ca diff --git a/Scripts/vish b/Scripts/vish new file mode 100755 index 0000000..6587c34 --- /dev/null +++ b/Scripts/vish @@ -0,0 +1,7 @@ +#!/bin/sh + +## creates a new shell script and chmods it + +[ -f "$1" ] && echo "File already exists, aborting" && return 1 + +echo '#!/bin/sh' > "$1" && chmod +x "$1" && $EDITOR "$1"