1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 06:08:05 +03:00

file.kak: Acknowledge mime type application/x-shellscript

This commit is contained in:
codesoap 2020-12-23 22:45:07 +01:00
parent 74b6c20a0d
commit c9f07702f9

View File

@ -10,6 +10,7 @@ hook global BufOpenFile .* %{ evaluate-commands %sh{
text/x-script.*) filetype="${mime#text/x-script.}" ;; text/x-script.*) filetype="${mime#text/x-script.}" ;;
text/x-*) filetype="${mime#text/x-}" ;; text/x-*) filetype="${mime#text/x-}" ;;
text/*) filetype="${mime#text/}" ;; text/*) filetype="${mime#text/}" ;;
application/x-shellscript) filetype="sh" ;;
application/x-*) filetype="${mime#application/x-}" ;; application/x-*) filetype="${mime#application/x-}" ;;
application/*) filetype="${mime#application/}" ;; application/*) filetype="${mime#application/}" ;;
*) exit ;; *) exit ;;