summaryrefslogtreecommitdiffstats
path: root/lisp/init-mac.el
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2017-10-04 19:25:41 +0200
committerMartin Polden <mpolden@mpolden.no>2017-10-04 19:28:53 +0200
commit1e23024af4ac4b3c2954e506408b4f42e4cb42f5 (patch)
tree4099b4cccfdc49783bb28578d028746fa11c7657 /lisp/init-mac.el
parent1efa14af5460562cc1d93c23f51c80e1859b3476 (diff)
Use GNU df on Mac when available
Diffstat (limited to 'lisp/init-mac.el')
-rw-r--r--lisp/init-mac.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/init-mac.el b/lisp/init-mac.el
index b2de1c5..fbd10fd 100644
--- a/lisp/init-mac.el
+++ b/lisp/init-mac.el
@@ -40,4 +40,9 @@
(when (executable-find "gls")
(setq insert-directory-program "gls"))
+;; use gdf if available as it provides more correct output. When apfs is used,
+;; the ifree column of bsd df seems to be incorrect
+(when (executable-find "gdf")
+ (setq dired-free-space-program "gdf"))
+
(provide 'init-mac)