I am trying to create a script to be reload bashrc once but it did not work.
reloader.sh
#!bin/bash
source ~/.bashrc
rm reloader.sh
You need to use source to run the script:
source reloader.sh
If you just run it as a command, it will run in a new process, so none of the changes that .bashrc makes will affect your original shell process.
rm reloader.sh?echo removing reloader.sh before it, do you see the message?
source. Otherwise it runs in a subshell, and the changes that.bashrcmakes won't affect your original shell.