terminal - 有没有办法在不关闭当前 session 的情况下 "refresh"终端/iTerm?

标签 terminal nativescript iterm

我刚刚在 iTerm2 中更新了我的 xcode 命令行工具,似乎我需要重新启动 iTerm 才能使其工作,因为当我尝试使用

tns build ios

命令为 iOS 构建我的 nativescript 项目,它总是回显
xcodebuild execution failed. Make sure that you have latest Xcode and tools installed.

这不应该是真的。
但是,我正在运行一个 session ,将一个巨大的文件上传到我的云驱动器,该文件花了 7 个小时才上传了 37%,并且它不支持从断点恢复上传。

那么,有没有办法在不关闭事件 session 的情况下刷新终端?

谢谢你们

最佳答案

不是试图在这里窃取答案。但答案在@BillyChen 的评论中

source ~/.bash_profile
source ~/.zsh_profile or source ~/.zshrc

这取决于您使用什么 shell 来获取正确的配置文件。有些也使用通用的 .profile
source ~/.profile

关于terminal - 有没有办法在不关闭当前 session 的情况下 "refresh"终端/iTerm?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48109969/

相关文章:

linux - 每个命令都会产生段错误

textview - 从 Nativescript 中的 TextView 关闭键盘的正确方法

javascript - 在 NativeScript 中显示 PopOver

c - 用C打开/启动多个pdf文件?

frameworks - 安装 Meteor - 无法编写启动程序脚本

macos - iterm vim colorscheme无法正常工作

macos - 在不同的mac终端之间通过键盘复制和粘贴vim?

rspec - 如何关闭新输出的 iTerm2 growl 通知,但保留它们用于 rspec 结果

c++ - 运行终端程序时阻止终端输入

http - 在 Nativescript 应用程序中向服务器发送 http.patch 请求