【问题标题】:Ubuntu terminal: I can't seem to launch programs from my terminal anymore. I use sublime, rails and herokuUbuntu 终端:我似乎无法再从终端启动程序了。我使用 sublime、rails 和 heroku
【发布时间】:2020-05-26 15:33:52
【问题描述】:

我不知道这个问题究竟是什么时候开始的,或者是什么原因造成的,但是任何暗示调用程序或终端外部任何东西的命令都不起作用。以下是几个例子:

stt
heroku open
rails s

这些是我使用的,但它似乎是一种打开外部事物的模式。当我键入这些命令时,它们会显示为绿色。 stt 应该打开 sublime,但现在没有了。 heroku 打开,没有在浏览器中打开我的应用程序,并且 rails s 连接到本地服务器,但我必须手动打开我的应用程序。 有任何想法吗 ? 谢谢!

【问题讨论】:

    标签: ruby-on-rails ubuntu heroku sublimetext3 zsh


    【解决方案1】:

    好的,我找到了答案。我的 zshrc 文件(在 dotfiles 中)有些冲突,我可能已经安装了一些东西,但不确定是什么。我在 zsh 文件中手动删除了以下几行,一切都恢复正常了:

    # Encoding stuff for the terminal
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    export BUNDLER_EDITOR="subl $@ >/dev/null 2>&1 -a"
    export BUNDLER_EDITOR="subl $@ >/dev/null 2>&1 -a"
    export BUNDLER_EDITOR="subl $@ >/dev/null 2>&1 -a"
    export DISPLAY=127.0.0.53:0
    export DISPLAY=127.0.0.53:0
    export BUNDLER_EDITOR="subl $@ >/dev/null 2>&1 -a"
    

    【讨论】:

      猜你喜欢
      • 2014-11-01
      • 2020-06-21
      • 1970-01-01
      • 2015-11-24
      • 1970-01-01
      • 2020-11-13
      • 2011-10-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多