Create symlink to home directory.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 31 May 2017 16:58:21 +0300
changeset 2143 e5191a677ee5
parent 2142 e377b322bdd7
child 2144 f8891b4321f5
Create symlink to home directory.
cygwin.rst
--- a/cygwin.rst	Wed May 31 13:58:26 2017 +0300
+++ b/cygwin.rst	Wed May 31 16:58:21 2017 +0300
@@ -34,7 +34,15 @@
   set TMP=c:\tmp
   set TEMP=c:\tmp
 
-Also you need edit /etc/passwd to point to correct home path.
+Also you need edit ``/etc/passwd`` to point to correct home path.
+
+Starting from Cygwin ``/etc/nsswitch.conf`` settings used to define user home.
+By default it is ``/home/%U`` so it is better to create symlink::
+
+  $ ln -s /cygdrive/d/home /home/user
+
+https://stackoverflow.com/questions/1494658/how-can-i-change-my-cygwin-home-folder-after-installation
+  How can I change my Cygwin home folder after installation?
 
 Documentation
 =============