about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <david.morgan@gmail.com>2016-04-22 08:56:03 +0100
committerDavid Morgan <david.morgan@gmail.com>2016-04-22 08:56:03 +0100
commit443f8e3566581eac4bc3187c64405121c3a37401 (patch)
treecf36361bcb74dc4613be39fd7328e8808e9a7412
parentaf37644653baee0ecabbf2f4f0e347818a8891d6 (diff)
downloaddotfiles-443f8e3566581eac4bc3187c64405121c3a37401.tar.gz
Put some variables for cygwin back in
-rw-r--r--.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 15e24e6..7bb1557 100644
--- a/.bashrc
+++ b/.bashrc
@@ -521,6 +521,17 @@ function count_urls()
 #pgrep -f ecs || screen -S ecs -d -m ssh -X -R 6728:localhost:22221 m04dm@booth1.ecs.ox.ac.uk
 #pgrep -f crow || screen -S crow -d -m ssh -X -D 8080 wadh2045@crow.linux.ox.ac.uk
 
+
+# cygwin
+if [[ "x$OS" == "xWindows_NT" ]]; then
+    export nodosfilewarning=1
+    export C=/cygdrive/c
+    export WIN_HOME=$C/Users/davidmo
+
+    # eclipse :(
+    [[ -d $WIN_HOME/workspaces ]] && export WORKSPACES=$WIN_HOME/workspaces
+fi
+
 true
 
 # vim: set et ts=4 tw=120 :