From 6d220341823bbe6cb08f9ac4558a78c648949da9 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 24 Mar 2024 21:13:20 +0100 Subject: [PATCH] Add new script. Just a script for quickly creating a new script and opening it in neovim. --- home-manager/modules/scripts/ns | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 home-manager/modules/scripts/ns diff --git a/home-manager/modules/scripts/ns b/home-manager/modules/scripts/ns new file mode 100755 index 0000000..0b16a8d --- /dev/null +++ b/home-manager/modules/scripts/ns @@ -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"