I have a pretty simple script that is something like the following:
#!/bin/bash
VAR1="$1"
MOREF='sudo run command against $VAR1 | grep name | cut -c7-'
echo $MOREF
When I run this script from the command line and pass it …
How can I reload .bash_profile from the command line?
I can get the shell to recognize changes to .bash_profile by exiting and logging back in but I would like to be able to do it on demand.