启动 cygwin shell 后,它只是定位在错误的主目录中:
xfire@codingme.com ~
$ pwd
/cygdrive/c/Users/xfire
但它曾经是/home/xfire
xfire@codingme.com /etc
$ cat passwd | grep xfire
xfire:unused:22773:10513:U-CORP\xfire,S-1-5-21-527237240-725345543-682003330-12773:/home/xfire:/bin/bash
而/home/xfire中的.bashrc没有执行,即使我把它复制到/cygdrive/c/Users/xfire,它也不起作用!
最佳答案
在 cygwin 上,我将此添加到我的 ~/.bash_profile
:
. ~/.bashrc
关于shell - Cygwin shell 不执行 .bashrc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9815927/