Detect text/x-script.* and application/x-* types
This commit is contained in:
parent
66f15cf4ad
commit
bdd7ea6a03
|
@ -7,8 +7,10 @@ hook global BufOpenFile .* %{ evaluate-commands %sh{
|
||||||
image/*+xml) filetype="xml" ;; #SVG
|
image/*+xml) filetype="xml" ;; #SVG
|
||||||
message/rfc822) filetype="mail" ;;
|
message/rfc822) filetype="mail" ;;
|
||||||
text/x-shellscript) filetype="sh" ;;
|
text/x-shellscript) filetype="sh" ;;
|
||||||
|
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-*) filetype="${mime#application/x-}" ;;
|
||||||
application/*) filetype="${mime#application/}" ;;
|
application/*) filetype="${mime#application/}" ;;
|
||||||
esac
|
esac
|
||||||
if [ -n "${filetype}" ]; then
|
if [ -n "${filetype}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user