I'm trying to add an alias to the bashrc file. Since I'm not good at this, Im' going to write all the steps I took
nano ~/.bashrc
The file had this in it
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
On top of that I added my alias
dropUpload(){
~/drop.sh upload $1 $2
}
alias dropU=dropUpload
Saved the file and then sourced it with . ~/.bashrc
In the same window I tried using the code dropU first/url second/url
and it worked. I closed the terminal window and opened a new one, the code no longer works. The error I get is
-bash: dropU: command not found
If I nano
back to the file my new code is there. If I re-source the file, the code works. How can I get this to persist?