purcell / exec-path-from-shell

Make Emacs use the $PATH set up by the user's shell
Other
1.41k stars 81 forks source link

Support dired-do-shell-command #64

Closed QiangF closed 7 years ago

QiangF commented 7 years ago

When the program is on a custom path, dired-do-shell-command can't find it. dired-do-shell-command must have been using another path setting.

purcell commented 7 years ago

Please provide steps to reproduce.

Following the code for that command, it ultimately uses shell-file-name to run the file, e.g. /bin/bash -c /your/script/path, so it should work the same as anything else.

QiangF commented 7 years ago

I am using the emacs window manager EXWM. The problem disappears when I reboot the system. I guess "/bin/bash -c " doesn't reload the .bashrc file each time. Thank you for looking into this issue!

purcell commented 7 years ago

I guess "/bin/bash -c " doesn't reload the .bashrc file each time

Correct: it only loads that file for interactive shells, or when called with "-i".