win10 内置的的子系统在/etc/profile设置java环境变量后,无法生效,每打开一个bash都有要执行. /etc/profile后才能生效。重启重装都不行。
. /etc/profile
走同样的路,发现不同的人生
Create shortcutsC:WindowsSystem32bash.exe ~ --login -i
C:WindowsSystem32bash.exe ~ --login -i
I also encountered this situation several times in win10, and I had to do it again every time before it took effect.
Create shortcuts
C:WindowsSystem32bash.exe ~ --login -i
I also encountered this situation several times in win10, and I had to do it again every time before it took effect.