summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2019-04-17 12:37:54 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2019-04-17 12:37:54 +0200
commitba1274f73cbef10998013b45d4121cd48c52dde2 (patch)
treeff5f05f87ed4f53ef805b1a22ebb1a761a84cb6a
parent313c6eadc7ddd79f5057298e9d9751eb284a0857 (diff)
file.kak: Dereference symlinks
-rw-r--r--rc/detection/file.kak2
1 files changed, 1 insertions, 1 deletions
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" ;;