mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
committed by
Henrik Lissner
parent
5a0f1fe1cc
commit
5ca8c75644
@ -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
|
||||
|
Reference in New Issue
Block a user