From ba1274f73cbef10998013b45d4121cd48c52dde2 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Wed, 17 Apr 2019 12:37:54 +0200 Subject: [PATCH] file.kak: Dereference symlinks --- rc/detection/file.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/detection/file.kak b/rc/detection/file.kak index 2a0632c1..d0f8ec5e 100644 --- a/rc/detection/file.kak +++ b/rc/detection/file.kak @@ -1,6 +1,6 @@ hook global BufOpenFile .* %{ evaluate-commands %sh{ if [ -z "${kak_opt_filetype}" ]; then - mime=$(file -b -i "${kak_buffile}") + mime=$(file -b -i -L "${kak_buffile}") mime=${mime%;*} case "${mime}" in application/*+xml) filetype="xml" ;;