bash - 如何在 atom 终端中使用 conda 而不输入 source ~/.bashrc?

标签 bash ubuntu atom-editor

最近我为 atom 编辑器安装了 platformio 终端。当我打开终端运行 conda 时,它说找不到命令。尽管 conda 在普通终端中运行良好。我在 .bashrc 上运行了源命令,它起作用了。但是每次我重新启动 atom 时我都必须处理这个问题。我该如何摆脱这个?

最佳答案

您需要覆盖默认的 shell 实例。转到 Atom 中 platformio 终端的设置并更改 shell 路径。在我的例子中,默认的 shell 是 Powershell,它不会启动 conda。所以,我在这里更改了指向 cmd.exe "C:\Windows\System32\cmd.exe"的路径并重新启动了终端,这为我解决了问题。也许,对于 Linux,您也需要在此处输入 ~/.bashrc 路径并重新启动终端

enter image description here

关于bash - 如何在 atom 终端中使用 conda 而不输入 source ~/.bashrc?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49315554/

相关文章:

linux - (unix/bash) 使用 ">>"与终端的详细信息?

bash - 在 bash 中定义变量时出错

linux - 结合linux中的ionice和nice,以及传递优先级

python - 调整 crontab 作业时间

ubuntu - 如何在 ubuntu 中增加 jmeter 的堆大小?

dart - Atom 编辑器的 dartlang 插件是否与 dart-tools 插件兼容?

linux - 如何在 linux ssh here 脚本中禁止评论

python - 系统错误 : null argument to internal routine in xmlsec

replace - 如何在 Atom 中用空格替换制表符?

coffeescript - 如何在 Atom 中获取事件文件的名称?