I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the .bash_profile before the updated bash to take effect is it possible to refresh the session in current terminal ssh session?
Just source the file by running
. .bash_profile
will do the job.