Use only $OSTYPE to detect Cygwin.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 31 Oct 2011 12:09:19 +0200
changeset 258 e3c456cab7ba
parent 257 dfdd1c36beca
child 259 dea2aa21eb9d
Use only $OSTYPE to detect Cygwin.
.bashrc
--- a/.bashrc	Mon Oct 31 12:08:11 2011 +0200
+++ b/.bashrc	Mon Oct 31 12:09:19 2011 +0200
@@ -125,12 +125,10 @@
 
 # Special case for CYGWIN to properly display russian letters in rxvt.
 # Don't forget set in Windows SHELL=/bin/bash. If default SHELL is sh then .bashrc will not be read.
-if [ -n "$COMSPEC" ]; then
-  if [ x$OSTYPE = xcygwin ]; then
-    export LANG=ru_RU.CP1251
-    # Avoid permission problem in Cygwin.
-    umask 0000
-  fi
+if [ x$OSTYPE = xcygwin ]; then
+  export LANG=ru_RU.CP1251
+  # Avoid permission problem in Cygwin.
+  umask 0000
 fi
 
 export PATH=$PATH:~/usr/bin