Posts Tagged ‘windows’

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)"

Windows Mobile not showing contacts

Tuesday, March 9th, 2010

I had a problem with my windows mobile phone not showing me the name of who was calling me (it only showed the number).
The deal is that I store every contact in my phone in this format:
+354 xxx xxxx
That is, first the country code, and then the phone number. When I receive a sms, my phone service provider sends the number in the same format, but when I get a phone call it omits the country code.

I couldn’t believe that WM couldn’t figure this out, so after a little searching around I found out that WM actually does figure the numbers out, but only for 8 digit local numbers. Nothing a little registry hack can’t fix.

To fix this, first download PHM Registry Editor (works for WM 6.0-6.5).
Then, edit the registry value

HKCUControlPanelPhoneCallIDMatch

to be 7 instead of the default 8.