啓動cygwin外殼後,它只是定位錯誤的家目錄:Cygwin的殼不執行的.bashrc
[email protected] ~
$ pwd
/cygdrive/c/Users/xfire
但它曾經是的/ home/XFire軟件
[email protected] /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,它也不起作用!
檢查了這一點:http://www.cygwin.com/ml/cygwin/2002-01/msg00826.html – jahroy 2012-03-22 03:42:50
某些程序在Windows註冊表中添加一個「HOME」環境,並將值設置爲「C:\ Users \ xfire「,這就是爲什麼cygwin將該目錄作爲家庭的原因。 http://cygwin.com/faq-nochunks.html – 2012-03-22 06:24:13
無用的貓:'grep xfire passwd'。 – Jens 2012-04-27 09:29:23