As a linux user, I find myself often needing to update my .bashrc file to add something to my path. Then I must perform the lengthy process of opening my .bashrc, going to the bottom, adding export PATH=... wait, I forgot to copy the full path of what I need to add, etc.
So I wrote a quick script to do it for me. If something more robust than this exists, please let me know!
Check out the git on github
Usage:
This will append the following text to ~/.bashrc preceded by a new line:
So I wrote a quick script to do it for me. If something more robust than this exists, please let me know!
Check out the git on github
Usage:
addtopath somefolder "Adds XYZ commands to path"
This will append the following text to ~/.bashrc preceded by a new line:
# Adds XYZ commands to path
export PATH=/full/path/to/somefolder:$PATH