# Create a new Bash script in current working directory. [group('script')] newbash name: #!/usr/bin/env bash FILENAME={{ name }} cat <"${PWD}/${FILENAME}" #!/usr/bin/env bash # vim: ai et ft=bash sts=4 sw=4 ts=4 EOF nvim "${PWD}/${FILENAME}" # Create a new Python script with external dependencies in current working directory. [group('script')] newpydep name: #!/usr/bin/env bash FILENAME={{ name }} cat <"${PWD}/${FILENAME}" #!/usr/bin/env -S uv run --script # /// script # dependencies = [ # ] # /// # vim: ai et ft=python sts=4 sw=4 ts=4 EOF nvim "${PWD}/${FILENAME}" # Create a new Python script in current working directory. [group('script')] newpy name: #!/usr/bin/env bash FILENAME={{ name }} cat <"${PWD}/${FILENAME}" #!/usr/bin/env python3 # vim: ai et ft=python sts=4 sw=4 ts=4 EOF nvim "${PWD}/${FILENAME}" # Create a new Raku script in current working directory. [group('script')] newraku name: #!/usr/bin/env bash FILENAME={{ name }} cat <"${PWD}/${FILENAME}" #!/usr/bin/env raku # vim: ai et ft=raku sts=4 sw=4 ts=4 EOF nvim "${PWD}/${FILENAME}" # Create a new Perl script in current working directory. [group('script')] newperl name: #!/usr/bin/env bash FILENAME={{ name }} cat <"${PWD}/${FILENAME}" #!/usr/bin/env perl # vim: ai et ft=perl sts=4 sw=4 ts=4 EOF nvim "${PWD}/${FILENAME}" # Create a new Nushell script in current working directory. [group('script')] newnushell name: #!/usr/bin/env bash FILENAME={{ name }} cat <"${PWD}/${FILENAME}" #!/usr/bin/env nu # vim: ai et ft=nu sts=4 sw=4 ts=4 EOF nvim "${PWD}/${FILENAME}" # vim: ai et ft=just sts=4 sw=4 ts=4