mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 07:53:41 +03:00
file.kak: Use -i POSIX option name
https://ss64.com/osx/file.html https://freebsd.org/cgi/man.cgi?query=file
This commit is contained in:
parent
ace499ecb1
commit
313c6eadc7
@ -1,6 +1,7 @@
|
||||
hook global BufOpenFile .* %{ evaluate-commands %sh{
|
||||
if [ -z "${kak_opt_filetype}" ]; then
|
||||
mime=$(file -b --mime-type "${kak_buffile}")
|
||||
mime=$(file -b -i "${kak_buffile}")
|
||||
mime=${mime%;*}
|
||||
case "${mime}" in
|
||||
application/*+xml) filetype="xml" ;;
|
||||
image/*+xml) filetype="xml" ;; #SVG
|
||||
|
Loading…
Reference in New Issue
Block a user