Make change to counsel-rg-base-command idempotent

So doom/reload doesn't clobber it.
This commit is contained in:
Henrik Lissner 2020-06-05 00:47:35 -04:00
parent f548ab600c
commit 8089b5b723
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -211,8 +211,8 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
;; absolute path. Remove this when it is fixed upstream in counsel. ;; absolute path. Remove this when it is fixed upstream in counsel.
(when (memq system-type '(windows-nt ms-dos)) (when (memq system-type '(windows-nt ms-dos))
(setq counsel-rg-base-command (setq counsel-rg-base-command
(replace-regexp-in-string "--path-separator /" (replace-regexp-in-string "--path-separator / "
"--path-separator //" "--path-separator // "
counsel-rg-base-command))) counsel-rg-base-command)))
;; Integrate with `helpful' ;; Integrate with `helpful'