mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-10 13:25:25 +03:00
file.kak: Dereference symlinks
This commit is contained in:
parent
313c6eadc7
commit
ba1274f73c
@ -1,6 +1,6 @@
|
|||||||
hook global BufOpenFile .* %{ evaluate-commands %sh{
|
hook global BufOpenFile .* %{ evaluate-commands %sh{
|
||||||
if [ -z "${kak_opt_filetype}" ]; then
|
if [ -z "${kak_opt_filetype}" ]; then
|
||||||
mime=$(file -b -i "${kak_buffile}")
|
mime=$(file -b -i -L "${kak_buffile}")
|
||||||
mime=${mime%;*}
|
mime=${mime%;*}
|
||||||
case "${mime}" in
|
case "${mime}" in
|
||||||
application/*+xml) filetype="xml" ;;
|
application/*+xml) filetype="xml" ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user