[from now] 2014/08/21 16:16:46

diff --git a/.bashrc b/.bashrc
index 6131c80..bc2ad28 100644
--- a/.bashrc
+++ b/.bashrc
@@ -7,8 +7,6 @@ export PATH=~/bin:/usr/local/sbin:/usr/local/bin:$PATH
 export MANPATH=/usr/local/share/man:$MANPATH
 export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
 export LANG='ja_JP.UTF-8'
-export DISPLAY=localhost:0.0
-# export DISPLAY=unix:0.0
 export LISTMAX=200
 export HISTSIZE='100000'
 export EDITOR='vi'
@@ -19,6 +17,12 @@ export GREP_COLOR='1;36'
 export PS1='\[\033[1;32m\]\u@\h\[\033[0m\] \[\033[1;34m\]\w\[\033[0m\] \$ '
 export CLICOLOR=1
 export LSCOLORS=ExFxCxDxBxegedabagacad
+
+# http://x.cygwin.com/docs/ug/using-remote-apps.html
+case "${OSTYPE}" in
+darwin* | cygwin*) export DISPLAY=:0.0 ;;
+esac
+
 #}}}