fix(file-templates): better recognize shell types

There are some conventional files strongly associated with a non-bash
shell which do not use an explicit `.zsh` file extension (e.g.
`.zprofile`); the old logic would always use the `#!/usr/bin/env bash`
shebang in these cases, which is a tiny little bummer.
This commit is contained in:
Alex Birdsall 2022-08-17 15:36:02 -07:00 committed by Henrik Lissner
parent 5a0f1fe1cc
commit 5ca8c75644

View file

@ -1,3 +1,3 @@
#!/usr/bin/env `(if (equal (file-name-extension buffer-file-name) "zsh") "zsh" "bash")` #!/usr/bin/env `(format "%s" sh-shell)`
$0 $0