Eclipse不使用路径在.bashrc中设置 [英] Eclipse doesn't use the path set in .bashrc

查看:328
本文介绍了Eclipse不使用路径在.bashrc中设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我从弹出的快捷Eclipse中运行,我不能正确地建立一些我的项目,因为我在配置的.bashrc <在 PATH 变量/ code>没有得到使用。

whenever I run eclipse from the shortcut I am unable to correctly build some of my projects because the PATH variable that I configured in .bashrc doesn't get used.

当我从终端Eclipse中运行,我可以,因为它是通过正确的shell中运行建立我的所有项目完全正常。

When I run eclipse from my terminal, I can build all my projects perfectly fine because it's running through the correct shell.

问题是,我想使用 PATH 从我的.bashrc 永久不具有末端开放的变量。我尝试过这一点,但每一天我不小心关闭的意外运行Eclipse终端和失去所有未保存我的code。

The problem is that I want to use the PATH variable from my .bashrc without permanently having a terminal open. I tried this before, but every day I accidentally close the terminal that's running eclipse by accident and lose all my unsaved code.

谁能帮我?

推荐答案

我能想到的两个选项针对此问题:

I can think of two options for this problem:


  • 写一个小剧本,导出这些增值经销商或源你的.bashrc你开始你的日食之前。

  • 定义在/ etc /环境这些变量。那么他们是不是用户的范围了。

我preFER第一选项。

I prefer the 1st option.

这篇关于Eclipse不使用路径在.bashrc中设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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