>From <https://nim-lang.org/docs/nims.html>:

> On Unix, you can also use the shebang #!/usr/bin/env nim, **as long as your 
> filename ends with .nims**

Missing an `e` is correct. However it only works on files prefixed with 
`.nims`, otherwise it gives "Error: invalid command: ...".

Also I've heard that two or more arguments in shebang might not be accepted by 
the system or shell, so I usually use `#!/usr/bin/nim --hints:off` with 
extension name `.nims`.

Reply via email to