锥体和console2模拟器未获取新的路径变量 [英] conemu and console2 emulators not getting new path variable

查看:76
本文介绍了锥体和console2模拟器未获取新的路径变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为这可能是系统问题,但最近进行了全新安装(win7 64bit)和全新安装的conmu(在旧的win32系统上,conumu和console2都遇到了相同的问题).我发现研究的所有内容都与通过命令行添加变量有关.我通过开始"->控制面板"->系统"->高级系统设置"来执行此操作,然后重新启动控制台.cmd正确选择了路径.

I thought maybe it was a system issue but recently did a fresh install (win7 64bit) and a clean install of conemu (had same problem with both conemu and console2 on old win32 system). Also everything I find researching has to do with adding variables via the command line. I'm doing this through Start->Control Panel->System->Advanced System Settings and then restarting the console. cmd picks up the path correctly.

当我手动向系统或用户PATH变量添加新路径,然后重新启动控制台并回显%path%时,它尚未重新加载新的PATH变量.

When I manually add a new path to the system or user PATH variable and then restart the console and echo %path% it has not re-loaded the new PATH variable.

cmd.exe:

C:\Users\lotus>echo %path%
C:\Python33\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\
System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\PHP;C:\ProgramData\
Composer\bin;C:\PHP;C:\PHP\ext;C:\Ruby200-x64\bin;C:\Users\lotus\AppData\Roaming
\npm

conemu:

C:\Program Files\ConEmu>echo %path%
C:\Program Files\ConEmu\ConEmu;C:\Program Files\ConEmu;C:\Python33\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Ruby200-x64\bin

我知道还有一个额外的C:\ PHP,但这是另一个问题.如果我删除它,我仍然有同样的问题.

I know there is a extra C:\PHP but that's another issue. I still have the same problem if I remove that.

谢谢

推荐答案

使用诸如ConEmu或Console2之类的基于选项卡的替代终端时,您需要重新启动终端,而不是单个控制台(读取选项卡)!

When you are using alternative tab based terminals like ConEmu or Console2, you need to restart the terminal, not a single console (read tab)!

这是因为子进程继承其环境直接父进程,而不是从系统继承!

This is because child processes inherit their environment their direct parent process, not from the system!

有时必须重新启动资源管理器(或用于启动ConEmu的任何外壳程序),因为您必须杀死explorer.exe,因此您的开始菜单消失并从任务管理器中重新启动.如果其他所有方法均失败,请注销并再次登录.

Sometimes explorer (or whatever shell you are using to start ConEmu) needs to be restarted, as in you have to kill explorer.exe, so your start menu disappears and relaunch it from task manager. If all else fails, log off and on again.

这篇关于锥体和console2模拟器未获取新的路径变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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