Last active
January 15, 2025 20:40
-
-
Save russellmcc/6415142 to your computer and use it in GitHub Desktop.
How to use fish shell paths from emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let* | |
((fish-path (shell-command-to-string "/opt/homebrew/bin/fish -i -c \"echo -n \\$PATH[1]; for val in \\$PATH[2..-1];echo -n \\\":\\$val\\\";end\"")) | |
(full-path (append exec-path (split-string fish-path ":")))) | |
(setenv "PATH" fish-path) | |
(setq exec-path full-path)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Glad this helped!