Parcourir la source

Update default command

master
10sr il y a 5 ans
Parent
révision
34eea3f66f
Signé par: 10sr ID de la clé GPG: C384BB17CBB19347
1 fichiers modifiés avec 7 ajouts et 3 suppressions
  1. +7
    -3
      emacs.el

+ 7
- 3
emacs.el Voir le fichier

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


Chargement…
Annuler
Enregistrer