有没有办法在不关闭当前会话的情况下 "refresh" terminal/iTerm?
Is there a way to "refresh" the terminal/iTerm without closing the current sessions?
我刚刚在我的 iTerm2 中更新了我的 xcode 命令行工具,似乎我需要重新启动我的 iTerm 才能让它工作,因为当我尝试使用
tns build ios
为 iOS 构建我的 nativescript 项目的命令,它总是回显
xcodebuild execution failed. Make sure that you have latest Xcode and tools installed.
这不应该是真的。
但是,我有一个会话目前正在 运行 将一个巨大的文件上传到我的云驱动器,该文件花了 7 个小时才上传了 37%,并且它不支持从断点继续上传。
那么,有什么方法可以在不关闭活动会话的情况下刷新终端吗?
谢谢大家
不是想在这里窃取答案。但答案在@BillyChen
的评论中
source ~/.bash_profile
source ~/.zsh_profile or source ~/.zshrc
这取决于您使用什么 shell 来获取正确的配置文件。有些人也使用通用的 .profile
source ~/.profile
这似乎对我有用
source ~/.zshrc
我刚刚在我的 iTerm2 中更新了我的 xcode 命令行工具,似乎我需要重新启动我的 iTerm 才能让它工作,因为当我尝试使用
tns build ios
为 iOS 构建我的 nativescript 项目的命令,它总是回显
xcodebuild execution failed. Make sure that you have latest Xcode and tools installed.
这不应该是真的。 但是,我有一个会话目前正在 运行 将一个巨大的文件上传到我的云驱动器,该文件花了 7 个小时才上传了 37%,并且它不支持从断点继续上传。
那么,有什么方法可以在不关闭活动会话的情况下刷新终端吗?
谢谢大家
不是想在这里窃取答案。但答案在@BillyChen
的评论中source ~/.bash_profile
source ~/.zsh_profile or source ~/.zshrc
这取决于您使用什么 shell 来获取正确的配置文件。有些人也使用通用的 .profile
source ~/.profile
这似乎对我有用
source ~/.zshrc