Don't most people modify /etc/profile for PATH?
>
> OLDPATH=${PATH}
>
> export -n PATH_SEPARATOR
>
>
>> wpath="/c/Windows:/c/Windows/system32:/c/Windows/system32/Wbem"
>
> MSYS2_PATH="/usr/local/bin:/usr/bin:/bin"
>
> ...
> ;;
> MSYS)
> PATH="${MSYS2_PATH}:${wpath}"
>
>
On Thu, Nov 12, 2015 at 1:33 AM, David Macek <[email protected]>
wrote:
> On 12. 11. 2015 10:21, Baruch Burstein wrote:
> > Hi,
> >
> > The wiki says:
> >
> > When using the shells, try to remove as many entries from PATH as
> you can, ideally only leaving something like |C:\Windows\system32|
> >
> >
> > How do I do this? If I set PATH in the .bash_profile file, it will
> overwrite also the things added by msys2, like /usr/bin etc. Where can I
> set the PATH variable that is passed from Windows? If it makes a
> difference, I can use either the standard batch files or the new launchers.
>
> I used to employ a separate batch file that was similar to the official
> ones, but also changed the PATH. You can do that, or you can just edit the
> official batch files (but they'll be overwritten on the next update of the
> filesystem package).
>
> For the new launchers, you can add a PATH=... line into the .ini files. In
> the next release, there will be a new PATH line template (commented out by
> default). The .ini files shouldn't be overwritten upon update.
>
> > ˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
>
> ˙pooƃ ʇsnɾ ǝɹ,noʎ ɹO
>
> --
> David Macek
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users