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 <anilduggirala@xxxxxxxxxxx> 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 $PATH is now: $PATH:/my/path/:/my/path,
my directory has been appended twice.
I don't know exactly what the "export" command actually does, so I am
lost here.
thanks for your help.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure