Browse Source

Update default command

master
10sr 5 years ago
parent
commit
34eea3f66f
Signed by: 10sr GPG Key ID: C384BB17CBB19347
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      emacs.el

+ 7
- 3
emacs.el View File

@@ -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)
)


Loading…
Cancel
Save