Re: how to change environment variable permanently

2022-06-25 Thread Barry
> On 25 Jun 2022, at 12:36, George N. White III wrote: > >  >> On Fri, Jun 24, 2022 at 7:28 PM Barry wrote: > >> On 24 Jun 2022, at 16:36, Roger Heflin wrote: >>>  >>> Trick is add this around the path add. >>> >>> If [ $path_add -ne 1 ] ; then >>> Path addition code >>> Pat

Re: how to change environment variable permanently

2022-06-25 Thread George N. White III
On Fri, Jun 24, 2022 at 7:28 PM Barry wrote: > > On 24 Jun 2022, at 16:36, Roger Heflin wrote: > >  > Trick is add this around the path add. > > If [ $path_add -ne 1 ] ; then > Path addition code > Path_add=1 > Fi > > That only runs it once. > > > This is a work around for using ,bashrc when .b

Re: how to change environment variable permanently

2022-06-24 Thread Barry
> On 24 Jun 2022, at 16:36, Roger Heflin wrote: > >  > Trick is add this around the path add. > > If [ $path_add -ne 1 ] ; then > Path addition code > Path_add=1 > Fi > > That only runs it once. This is a work around for using ,bashrc when .bash_profile is where this should be done. Bar

Re: how to change environment variable permanently

2022-06-24 Thread Barry
> On 24 Jun 2022, at 13:10, Anil F Duggirala wrote: > > hello, > I would like to change the $PATH environment variable permanently, to > be able to execute a program more quickly. > I have tried adding a new line: export PATH=$PATH:/my/path , to my > .bashrc . See PATH in .bash_profile not .b

Re: how to change environment variable permanently

2022-06-24 Thread George N. White III
On Fri, Jun 24, 2022 at 6:04 PM Jon LaBadie wrote: > On Fri, Jun 24, 2022 at 07:36:00AM -0800, Roger Heflin wrote: > >Trick is add this around the path add. > > > >If [ $path_add -ne 1 ] ; then > >Path addition code > >Path_add=1 > >Fi > > > >That only runs it once. > > > >On Fri, Jun 24, 2022, 4

Re: how to change environment variable permanently

2022-06-24 Thread Jon LaBadie
On Fri, Jun 24, 2022 at 07:36:00AM -0800, Roger Heflin wrote: Trick is add this around the path add. If [ $path_add -ne 1 ] ; then Path addition code Path_add=1 Fi That only runs it once. On Fri, Jun 24, 2022, 4:09 AM Anil F Duggirala wrote: hello, I would like to change the $PATH environme

Re: how to change environment variable permanently

2022-06-24 Thread Anil F Duggirala
On Fri, 2022-06-24 at 07:36 -0800, Roger Heflin wrote: > Trick is add this around the path add.   > > If [ $path_add -ne 1 ] ; then > Path addition code > Path_add=1 > Fi Thanks for this Roger, I will try it and let you know, ___ users mailing list -- u

Re: how to change environment variable permanently

2022-06-24 Thread Anil F Duggirala
On Fri, 2022-06-24 at 11:49 -0300, George N. White III wrote: > > You can add your program to the GUI configuration to start it with an > icon, put a > symbolic link to the program in a directory that is already in the > PATH, such as > $HOME/bin, create a shell script that runs the program with

Re: how to change environment variable permanently

2022-06-24 Thread George N. White III
On Fri, Jun 24, 2022 at 12:36 PM Roger Heflin wrote: > Trick is add this around the path add. > > If [ $path_add -ne 1 ] ; then > Path addition code > Path_add=1 > Fi > > That only runs it once. > This clutters up the environment. I often encountered weird environment variables when a user had

Re: how to change environment variable permanently

2022-06-24 Thread Roger Heflin
Trick is add this around the path add. If [ $path_add -ne 1 ] ; then Path addition code Path_add=1 Fi That only runs it once. On Fri, Jun 24, 2022, 4:09 AM Anil F Duggirala wrote: > hello, > I would like to change the $PATH environment variable permanently, to > be able to execute a program mo

Re: how to change environment variable permanently

2022-06-24 Thread George N. White III
On Fri, Jun 24, 2022 at 9:09 AM Anil F Duggirala wrote: > hello, > I would like to change the $PATH environment variable permanently, to > be able to execute a program more quickly. > I have tried adding a new line: export PATH=$PATH:/my/path , to my > .bashrc . > When I log in again, I see that

how to change environment variable permanently

2022-06-24 Thread Anil F Duggirala
hello, I would like to change the $PATH environment variable permanently, to be able to execute a program more quickly. I have tried adding a new line: export PATH=$PATH:/my/path , to my .bashrc . When I log in again, I see that $PATH is now: $PATH:/my/path/:/my/path, my directory has been appended