Skip to main content

How to execute a function in the .profile file

I have a function which is supposed to remove duplicate copies of directories from my PATH environment variable. I have created some duplicates so I can test it but I don't know how to:

  1. put the script in the $HOME/.bashrc file

This may seem stupid but I can't figure it out.