nixos/home-manager/modules/scripts/ns
Crony Akatsuki 6d22034182 Add new script.
Just a script for quickly creating a new script and opening it in neovim.
2024-03-24 21:13:20 +01:00

14 lines
204 B
Bash
Executable File

#!/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"