This commit is contained in:
Ray Elliott 2020-11-21 13:35:16 +00:00
parent 0e016de84a
commit 2b0d559371
1 changed files with 16 additions and 0 deletions

View File

@ -99,3 +99,19 @@ git-re() {
ch() { ch() {
curl "cheat.sh/$@" curl "cheat.sh/$@"
} }
newsh() {
set -e
if [ -f "$1" ] ; then
echo "Error: file exists: $1"
exit 1
fi
echo "#!/bin/sh" > "$1"
echo "" >> "$1"
echo "$2" >> "$1"
chmod +x "$1"
nvim "$1" +3
}