New path question

Forum Forums New users New Users and General Questions New path question

  • This topic has 19 replies, 6 voices, and was last updated Dec 26-11:29 pm by Brian Masinick.
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #96176
    Member
    sybok
      Helpful
      Up
      0
      ::

      Its header (in my installation) states that it should be used by login shells and BASH, the latter unless ‘~/.bash_profile’ exists.
      I guess it should be.

      #96180
      Moderator
      Brian Masinick
        Helpful
        Up
        0
        ::

        This is a “configurable choice”, as are the specific entries in any of the various shell configuration files. Many distributions do include initial settings for their configuration files. This is not a standard, it is the convention of the distribution. Some distributions pre-configure just about everything, but that doesn’t mean it is the default. The truth is that such activity simply discourages individuals from experimenting and custom configuring their systems. Our distribution is almost the opposite; only a few things are pre-configured, and these may also be changed.

        --
        Brian Masinick

        #96213
        Member
        iznit
          Helpful
          Up
          0
          ::

          for a different approach, I searched “add path to emacs”.

          https://emacs.stackexchange.com/questions/550/exec-path-and-path
          “Emacs does set exec-path from the value of PATH on startup, but will not look at it again later. But if you run a command, it will inherit PATH, not exec-path, so subprocesses can find different commands than Emacs does.”

          https://www.emacswiki.org/emacs/ExecPath
          The value of environment variable “PATH” is used by emacs when you are running a shell in emacs, similar to when you are using a shell in a terminal.
          The exec-path is used by emacs itself to find programs it needs for its features, such as spell checking, file compression, compiling, grep, diff, etc

          The linked emacswiki page gives a solution for setting ‘exec-path’ to automitically match shell PATH

          #96214
          Member
          iznit
            Helpful
            Up
            0
            ::

            This is a “configurable choice”

            Yes! If you are using a terminal emulator, investigate its configuration options. Among the available settings you will probably find one toggle labeled “act as a login shell”.

            #96215
            Moderator
            Brian Masinick
              Helpful
              Up
              0
              ::

              Maybe “The Wizard” will be able to tell us.

              See “The Wizard of Oz”, a classic movie, for more information. 😁😀

              --
              Brian Masinick

            Viewing 5 posts - 16 through 20 (of 20 total)
            • You must be logged in to reply to this topic.