Add new script.
Just a script for quickly creating a new script and opening it in neovim.
This commit is contained in:
parent
d7b480d7ad
commit
6d22034182
13
home-manager/modules/scripts/ns
Executable file
13
home-manager/modules/scripts/ns
Executable 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"
|
Loading…
Reference in New Issue
Block a user