能不能增加环境变量管理
Tofloor
poster avatar
yatangtang
deepin
2020-11-27 18:04
Author

请问可以增加环境变量管理功能吗,本人科研狗,喜爱深度。安软件和终端设置环境变量好烦。

Reply Favorite View the author
All Replies
ms347397173
deepin
2020-11-27 18:28
#1

有道理,方便使用

Reply View the author
derekuang
deepin
2020-11-27 18:36
#2

PATH就导出一下就可以了吧,已经很快捷了

Reply View the author
SamLukeYes
deepin
2020-11-27 18:37
#3
derekuang

PATH就导出一下就可以了吧,已经很快捷了

无论是 Windows 还是 Linux,环境变量都远远不只有 PATH。在 Linux 上你可以执行 env 命令看一下。

Reply View the author
liwl
deepin
2020-11-27 19:03
#4

真的只是编辑一个.bashrc文件的问题,这真的很难吗?

Reply View the author
yatangtang
deepin
2020-11-27 20:09
#5
liwl

真的只是编辑一个.bashrc文件的问题,这真的很难吗?

每次添加使用环境变量都要去百度一遍代码和路径,好烦哦。操作系统我只想点点点

Reply View the author
liwl
deepin
2020-11-27 20:18
#6
yatangtang

每次添加使用环境变量都要去百度一遍代码和路径,好烦哦。操作系统我只想点点点

做科研,要有点耐心

Reply View the author
sukanka
deepin
2020-11-27 21:05
#7

基本上不用关系环境变量的问题吧,一般都是把xx程序的路径添加到 PATH, 但是Linux 下程序通常都会链接到 `/usr/bin`下, 然后就可以直接执行啊,其他应用也可以直接找到啊。另外你可以把你要使用的环境变量的代码直接写到 `.bash.rc`

Reply View the author
mcxx123
deepin
2020-11-27 21:10
#8

严重同意,毕竟/etc/profile文件里还有别的信息,vi编辑很麻烦。且很多现在使用deepin的都是开发者,对于平凡使用的功能应该保证安全性和简易型。价格管理path的工具真的必要。同时降低linux的门槛。

Reply View the author
billlamian
deepin
2020-11-27 21:42
#9
liwl

做科研,要有点耐心

只是增加一种操作选择,这个上升到耐心,不至于

Reply View the author
Hello
deepin
2020-11-28 01:47
#10

linux需要设置什么环境变量?终端apt下软件变量自动是配好的,额外的环境变量一个path,alias不难吧

Reply View the author
Hello
deepin
2020-11-28 01:50
#11

我的建议是不要配置任何环境变量,这样会把linux自己本身的环境搞乱

建议在home下的.profile里面把./local/bin加入环境变量,需要用的可执行程序软链接到./local/bin里面,这样就不会搞乱环境了,而且配置方便

Reply View the author
Hello
deepin
2020-11-28 01:54
#12

能用apt里面的尽量用apt里的,比如gcc和lua等版本高低没有问题的尽量不要自己配,node等一般是压缩包,局部的环境,直接把它解压到home里把可执行文件软链接到./local/bin里不久完事了嘛

Reply View the author
Hello
deepin
2020-11-28 01:55
#13

另外,尽量不要动etc里面的那个文件,编辑.profile是更加明智的选择

Reply View the author
senluo
deepin
2021-01-10 05:20
#14

我觉得楼主的建议是个好建议,有些软件是需要自己配置环境变量的

win10的环境变量配置就挺方便的

Reply View the author