我可以在Windows 10上获得(新的)bash来加载.profile

时间:2016-06-18 21:11:48

标签: windows bash ubuntu windows-10 windows-subsystem-for-linux

我在Windows 10上安装了适用于Linux的新子系统(附带Windows周年更新),并开始使用它。

我注意到,即使.profile文件存在,启动shell(ubuntu bash)也不会加载.profile或.bash_profile。有修复吗?

(有很多声誉的人可以制作windows-bash标签吗?)

1 个答案:

答案 0 :(得分:26)

默认情况下,此版本的Ubuntu-on-windows加载名为<br> <br> <span style="color:white"> Fri 17 Jun 2016 05:22:48 PM PDT: In file included from /home/pi/eqserver/source/common/patches/mac.cpp:112:0: </span> <br> <br> <span style="color:white"> Fri 17 Jun 2016 05:22:48 PM PDT: /home/pi/eqserver/source/common/patches/ss_define.h:151:0: warning: "DECODE_LENGTH_ATLEAST" redefined </span> <br> <br> <span style="color:white"> 的文件。

您可以放置​​脚本或将以下行添加到.bashrc(如果不存在,则创建.bashrc):

.bashrc

注意:如果. ~/.profile 来自.bashrc,您可能需要对其进行评论,以防止bash无休止地循环播放。

相关问题