# HG changeset patch # User Oleksandr Gavenko # Date 1323038443 -7200 # Node ID d645bb7a270272bb8697a35f350aa8d0d30f652a # Parent 445d013283e6c7458af5eabaa1df1b7670c7b5ba Fix misspelling in variable name and improve Cygwin detection. diff -r 445d013283e6 -r d645bb7a2702 .xserverrc --- a/.xserverrc Fri Nov 18 01:13:21 2011 +0200 +++ b/.xserverrc Mon Dec 05 00:40:43 2011 +0200 @@ -1,6 +1,9 @@ #!/bin/sh -if [ -n "$COMPSPEC" ]; then +# http://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html + +if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then + # Probably under Cygwin. XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle" else X