Posts Tagged ‘user’

Some Cygwin tips

Thursday, October 8th, 2015

I’ve included here some first things I do after every fresh Cygwin installation.

Install Cygwin with Mintty, Zch, git, openssh, wget, curl.

Set Cygwin to use windows user home directory.
Open CygwinDir/etc/nsswitch.conf and add this line to it:

db_home: windows

Make Cygwin windows drive shortcuts shorter.
Type this into the Cygwin command line:

ln -s /cygdrive/c /c

Browse to C by typing “cd /c”. Do this for every drive you want.

Make Cygwin not fuck up file permissions
Add/modify this line to [Cygwin folder]/etc/fstab

none /cygdrive cygdrive binary,noacl,posix=0,user 0 0

Use Mintty as terminal and Zch as shell.
Edit your cygwin shortcut to look like this:

C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico /bin/zsh --login

Install Oh My Zsh in Cygwin
Just follow the normal instructions at this point:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"