How to make Emacs use my .bashrc file?

前端 未结 7 1145
轻奢々
轻奢々 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:30

    You can add path settings to /etc/profile.d such as

    # /etc/profile.d/path.sh
    export PATH="$PATH:/usr/local"
    

    In Ubuntu, I remember all sessions source your ~/.xsessionrc, so you also can set path in this file for GUI apps.

提交回复
热议问题