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?
1 Answer
Just source the file by running . .bash_profile
will do the job.
-
-
-
that means your shell is not bash. At a bash interactive prompt, enter
help . source
and you might notice ... certain similarities. Oct 21, 2018 at 13:28