Fix projectile breakage in windows in git projects

Because projectile tries to use `tr`, which doesn't exist on windows.
This commit is contained in:
Henrik Lissner 2019-07-08 21:25:35 +02:00
parent d0412b7f56
commit df56ea5c60
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -126,8 +126,11 @@ c) are not valid projectile projects."
(concat "rg -0 --files --color=never --hidden"
(cl-loop for dir in projectile-globally-ignored-directories
concat (format " --glob '!%s'" dir)))
;; ensure Windows users get fd's benefits
projectile-indexing-method 'alien))))
;; ensure Windows users get rg's benefits
projectile-indexing-method 'alien)
;; fix breakage on windows in git projects
(unless (executable-find "tr")
(setq projectile-git-submodule-command nil)))))
;;
;; Project-based minor modes