.bash_profile not updating until open new Terminal window I am trying to create a Terminal command. I have created this so far:

cd ~/ &amp;&amp; touch .bash_profile &amp;&amp; echo "" &gt;&gt; .bash_profile &amp;&amp; echo "alias sendtext=\"osascript -e 'on run argv' -e 'tell application \\\"Messages\\\"' -e 'set myid to get id of first service' -e 'set address to item 1 of argv' -e 'set message to item 2 of argv' -e 'set receiver to buddy address of service id myid' -e 'send message to receiver' -e 'end tell' -e 'end run'\"" &gt;&gt; .bash_profile &amp;&amp; echo "alias sendtext-remove=\"cd ~/ &amp;&amp; grep -vwE \\\"(sendtext|sendtext-remove)\\\" .bash_profile &gt; .bash_profile &amp;&amp; . .bash_profile\"" &gt;&gt; .bash_profile &amp;&amp; . .bash_profile


It creates two commands:


sendtext [email] [message] (Sends a text message to email)
sendtext-remove (Removes the two lines from the .bash_profile)


The problem is that after I run sendtext-remove, I can still run send text. How can I update the .bash_profile without opening a new Terminal window?
You can reload the bash profile from command line or script with the following command:

source ~/.bash_profile