Ubuntu终端:我似乎无法再从终端启动程序.我用崇高,铁轨和heroku [英] Ubuntu terminal: I can't seem to launch programs from my terminal anymore. I use sublime, rails and heroku

查看:86
本文介绍了Ubuntu终端:我似乎无法再从终端启动程序.我用崇高,铁轨和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 open,不会在浏览器中打开我的应用程序,并且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终端:我似乎无法再从终端启动程序.我用崇高,铁轨和heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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