Make cygwin home directory to Windows' User Profile

前端 未结 3 968
忘掉有多难
忘掉有多难 2021-02-02 11:43

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 termina

3条回答
  •  粉色の甜心
    2021-02-02 12:07

    I was able to change mine by simply setting the HOME environment variable in Windows to C:\Users\MyUsername. When I start Cygwin, now it looks there. This has the added benefit of causing Emacs on regular Win32 (i.e., not via Cygwin) to start in the right place instead of in C:\Users\MyUsername\AppData\Roaming (and thus looking for .emacs and .emacs.d there)

提交回复
热议问题