Skip to content

Commit

Permalink
fix: handle case when $PATH has empty entries
Browse files Browse the repository at this point in the history
  • Loading branch information
ametzger committed Oct 25, 2024
1 parent 4394ae3 commit a7095ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mise.el
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ environments updated."
(puthash cache-key new-val mise--cache)
new-val))))
(let ((path (getenv "PATH")))
(setq-local exec-path (-map #'directory-file-name (parse-colon-path path)))
(setq-local exec-path (-map #'directory-file-name
(remove nil (parse-colon-path path))))
(when (derived-mode-p 'eshell-mode)
(if (fboundp 'eshell-set-path)
(eshell-set-path path)
Expand Down

0 comments on commit a7095ed

Please sign in to comment.