Add new script.

Just a script for quickly creating a new script and opening it in neovim.
This commit is contained in:
CronyAkatsuki 2024-03-24 21:13:20 +01:00
parent d7b480d7ad
commit 6d22034182

13
home-manager/modules/scripts/ns Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env sh
if [ $# -ne 1 ]; then
echo "Provide a script name"
exit 1
else
name="$1"
fi
touch "$name"
chmod +x "$name"
echo "#!/usr/bin/env sh" > "$name"
nvim "+ normal Gzzoo" "$name"