diff bash @ 67:4510c8a9d8ec

[bash] We have cygwin!
author Edho Prima Arief <me@myconan.net>
date Sun, 22 May 2011 00:45:30 +0700
parents b7814634220a
children 40236fd0a3a5
line wrap: on
line diff
--- a/bash	Tue May 17 13:34:54 2011 -0400
+++ b/bash	Sun May 22 00:45:30 2011 +0700
@@ -2,6 +2,7 @@
 
 [ -f .ecos_bash.before ] && . .ecos_bash.before
 
+_org_path="${PATH}"
 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
 
 PS1='[\u@\h \W]\$ '
@@ -46,6 +47,9 @@
       alias ls='colorls -F'
     fi
   ;;
+  CYGWIN*)
+    export PATH="${PATH}:${_org_path}"
+  ;;
 esac
 
 [ "${_has_rm_I}" = y ] && alias rm="rm -I"