14 lines
187 B
Bash
Executable File
14 lines
187 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "Provide a script name"
|
|
exit 1
|
|
else
|
|
name="$1"
|
|
fi
|
|
|
|
touch "$name"
|
|
chmod +x "$name"
|
|
echo "#!/bin/sh" > "$name"
|
|
nvim "+ normal Gzzo" "$name"
|