From 34eea3f66fa472a625abbde356e8e641676fe1ea Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 14 Mar 2019 00:29:25 +0900 Subject: [PATCH] Update default command --- emacs.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/emacs.el b/emacs.el index 9dff767..907663f 100644 --- a/emacs.el +++ b/emacs.el @@ -743,12 +743,16 @@ found, otherwise returns nil." ;; Breadth-first find https://github.com/tavianator/bfs "bfs" "find")) - (defcmd (concat "set -o pipefail; " + (defcmd (concat "set -eu; set -o pipefail; " + "echo .; " + "echo ..; " "command " find " -L . " + "-mindepth 1 " "\\( -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune " - "-o -print 2> /dev/null " + "-o -print " + "2> /dev/null " "| " - "sed -e 's|^\\./||'"))) + "cut -b3-"))) (setenv "FZF_DEFAULT_COMMAND" defcmd)) (define-key ctl-x-map (kbd "C-f") 'fzf) )