Fix misspelling in variable name and improve Cygwin detection.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 05 Dec 2011 00:40:43 +0200
changeset 271 d645bb7a2702
parent 268 445d013283e6
child 272 558a19eb6af8
Fix misspelling in variable name and improve Cygwin detection.
.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