Skip to content

Commit

Permalink
Add wrapper to find that ignores Permission denied errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narendra Joshi committed Jul 19, 2023
1 parent 84090e3 commit a38dc5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/find-wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

find "$@" 2> /tmp/find-wrapper-error.log;
exit 0;
5 changes: 4 additions & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,9 @@ Argument STATE is maintained by `use-package' as it processes symbols."
("f" . git-ls-files-find-file) )

:init
(setq find-program
(expand-file-name "bin/find-wrapper.sh" user-emacs-directory))

(setq project-list-file
(expand-file-name "var/project-list" user-emacs-directory)

Expand Down Expand Up @@ -2502,7 +2505,7 @@ Argument STATE is maintained by `use-package' as it processes symbols."
("r" . consult-ripgrep)

:map project-prefix-map
("f" . consult-find)
("f" . project-find-file)
("g" . consult-regexp) )

:preface
Expand Down

0 comments on commit a38dc5b

Please sign in to comment.