【问题标题】:bad options -t shell integration bash错误选项 -t shell 集成 bash
【发布时间】:2019-05-15 15:25:58
【问题描述】:

$PATH/.iterm2_shell_integration.bash:type:257: 错误选项: -t 。如何解决该错误?我用 zsh。

我尝试重新安装 zsh 并在第 257 行将其注释掉,但它不起作用。

代码是从 zsh 内置的

【问题讨论】:

    标签: shell zsh iterm2


    【解决方案1】:

    文件名.iterm2_shell_integration.bash 似乎表明该文件是为bash 准备的。
    如果您正在采购此文件,请查看您的~/.zshrc,我想它不应该。

    我认为you can download the correct file for zsh here(点击 zsh)并按照网站上的说明进行获取。

    【讨论】:

    • 是的,你是对的,我获取了这个文件,因为我无法运行用 bash_profile 编写的别名。这就是为什么我必须在 /.zshrc 中添加这个文件来运行别名的原因。在不获取文件的情况下运行别名的另一种方法是什么?
    • 在从 zsh 获取之前手动将 bash 脚本转换为 zsh
    猜你喜欢
    • 2022-01-22
    • 1970-01-01
    • 2011-11-08
    • 2013-08-20
    • 2019-10-11
    • 2017-12-17
    • 1970-01-01
    • 1970-01-01
    • 2012-10-24
    相关资源
    最近更新 更多