How to make babun/cygwin home directory equal windows home directory?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 09:14:47

Babun has a surprisingly good FAQ. The last entry in the FAQ is How to Use the Windows home directory as Babun's home directory?

For me, it boiled down to:

  1. Create an env var for $HOME = /Users/my_account_name via Win+R sysdm.cpl
  2. Run mkpasswd -l -p "$(cygpath -H)" > /etc/passwd
  3. Run babun install

I'm not sure why Babun doesn't recognize the standard cygwin setting in /etc/nsswitch.conf, and I'm a bit surprised there was no mention of this setting in the Cygwin FAQ. I'm a bit concerned that in spite of what a great collection Babun is, it may fall out of sync with Cygwin quickly if not properly maintained.

I tried an easier way and works perfectly so far.

Just mv your home folder to the location you want, and make a symlink

The first execution after move may prompt errors, run babun install will fix everything.

in /etc/nsswitch.conf

db_home: /cygdrive/c/Users/%H

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!