From 1e0586fe1262d13c0fb55a348e3d9504c18c9464 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 13 Mar 2019 18:53:19 +0900 Subject: [PATCH] Update fzf default command --- emacs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index ab9a128..aba3290 100644 --- a/emacs.el +++ b/emacs.el @@ -737,8 +737,8 @@ found, otherwise returns nil." ;; Too slow! ;; (set-variable 'fzf/executable "sk") ;; (set-variable 'fzf/args "--color bw --print-query") - ;; Modified from hardcoded default to include directories - (let ((defcmd "set -o pipefail; command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune -o -print 2> /dev/null | cut -b3-")) + ;; Modified from hardcoded default to include directories, hidden files, and root directory + (let ((defcmd "set -o pipefail; command find -L . \\( -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune -o -print 2> /dev/null")) (setenv "FZF_DEFAULT_COMMAND" defcmd)) ;; (define-key ctl-x-map (kbd "C-f") 'fzf) )