使cygwin主目录到Windows的用户配置文件 [英] Make cygwin home directory to Windows' User Profile
问题描述
由于我在Windows机器上开发Ruby on Rails,我需要使用cygwin来模拟Unix命令提示符。现在的问题是,每次我打开cygwin终端,我被带到这个目录C:/ cygwin / home / my_user_name,而不是Windows的默认用户目录C:/ Users / my_user_name。
As I am developing Ruby on Rails on a Windows machine, I need to use cygwin to emulate the Unix command prompt. The problem now is that every time when I open the cygwin terminal, I am brought to this directory C:/cygwin/home/my_user_name instead of the Windows' default user directory C:/Users/my_user_name.
有没有人知道如何使cygwin的默认主目录为Windows默认C:/ Users / my_user_name目录?
Does anyone know how to make cygwin's default home directory to Windows default C:/Users/my_user_name directory?
我已经通过各种解决方案提供在Stack Overflow,但没有一个为我工作,mkpasswd也不工作。
I have skimmed through the various solutions provide in Stack Overflow, but none of them works for me, the "mkpasswd" doesn't work either. Does this have something to do with my operating system's version, or maybe something else?
我使用的是cygwin 1.7.5,而我的操作系统是Windows 7 Business 64位。这是否与我的操作系统的版本有关?
I am using cygwin 1.7.5 and my operating system is Windows 7 Business 64 bit.
推荐答案
mount -f "$USERPROFILE" ~
mount -m > /etc/fstab
相关
a href =http://stackoverflow.com/q/225764>安全地更改cygwin中的主目录
Safely change home directory in cygwin
这篇关于使cygwin主目录到Windows的用户配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!