Ubuntu 终端:我似乎不能再从我的终端启动程序了.我使用 sublime、rails 和 heroku [英] Ubuntu terminal: I can't seem to launch programs from my terminal anymore. I use sublime, rails and heroku

查看:100
本文介绍了Ubuntu 终端:我似乎不能再从我的终端启动程序了.我使用 sublime、rails 和 heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I don't know when exactly this problem started or what caused it, but any command that implies calling a program or anything external to my terminal doesn't work. Here are a few examples:

stt
heroku open
rails s

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

These are the ones I use but it seems to be a pattern with opening something external. These commands appear green when I type them. stt is supposed to open sublime but doesn't anymore. heroku open, doesn't open my app in the browser, and rails s connects to the local server but I have to open my app manually. Any ideas ? Thanks!

推荐答案

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

OK, I found the answer. Something was conflicting in my zshrc file (in the dotfiles), I probably had installed something, not sure what. I removed the following lines manually in the zsh file and everything is working again:

# 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"

这篇关于Ubuntu 终端:我似乎不能再从我的终端启动程序了.我使用 sublime、rails 和 heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆