How to make Emacs use my .bashrc file?

前端 未结 7 1100
轻奢々
轻奢々 2020-12-29 06:00

I need to use my $PATH in Emacs to run some commands. How can I make Emacs use it? I installed Emacs from Ubuntu repositories.

7条回答
  •  感情败类
    2020-12-29 06:07

    There are many Emacs packages that update $PATH environment variable and the 'exec-path'. That's because Emacs don't assume definitions in BASH related files, such as '~/.bashrc'.

    All definitions you need to have in any program not executed from a terminal shell, must be moved to '~/.profile', these are loaded in the system startup.

    Some old systems need to manually load user profile from '/etc/profile'.

提交回复
热议问题