tmac Plumb: skip loading non-existent .bashrc - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 83a5aba766bf2a2a84fe20df0d72d47a9105fdb2
parent 0c9524b72197871c435464d064fdcc3dd5437581
Author: Rob Kroeger 
Date:   Mon, 28 Nov 2011 10:09:26 -0500

mac Plumb: skip loading non-existent .bashrc

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5434052

Diffstat:
  M CONTRIBUTORS                        |       1 +
  M mac/Plumb.app/Contents/MacOS/plumb  |       4 +++-

2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
t@@ -28,6 +28,7 @@ Michael Teichgräber 
 Nikolai Saoukh 
 Peter Saveliev 
 Richard Miller 
+Rob Kroeger 
 Rob Pike 
 Russ Cox 
 Sean McKean 
diff --git a/mac/Plumb.app/Contents/MacOS/plumb b/mac/Plumb.app/Contents/MacOS/plumb
t@@ -1,6 +1,8 @@
 #!/bin/bash
 
-. ~/.bashrc
+if [ -e ~/.bashrc ] ; then
+        . ~/.bashrc
+fi
 PLAN9=${PLAN9:-/usr/local/plan9}
 
 bin=$PLAN9/bin