I just updated my xcode command line tool in my iTerm2 and it seems like I need to restart my iTerm to put that to work, since when I try to use
tns build ios
command to build my nativescript project for iOS, it always echos back
xcodebuild execution failed. Make sure that you have latest Xcode and tools installed.
which shouldn't be true. However, I am having a session that's currently running to upload a huge file to my cloud drive which has spent 7 hours to have uploaded 37%, and it doesn't support resume uploading from a break-point.
So, is there any way to refresh the terminal without closing the active session?
Thanks guys
Not trying to steal answers here. But the answer is in the comment by @BillyChen
source ~/.bash_profile
source ~/.zsh_profile or source ~/.zshrc
It depends on what shell you're using to pick up the proper profile. Some use a common .profile as well
source ~/.profile