tmac Plumb: skip loading non-existent .bashrc - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 83a5aba766bf2a2a84fe20df0d72d47a9105fdb2
(DIR) parent 0c9524b72197871c435464d064fdcc3dd5437581
(HTM) Author: Rob Kroeger <robkroeger@gmail.com>
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(-)
---
(DIR) diff --git a/CONTRIBUTORS b/CONTRIBUTORS
t@@ -28,6 +28,7 @@ Michael Teichgräber <mt@ib.wmipf.de>
Nikolai Saoukh <nikolai.saoukh@gmail.com>
Peter Saveliev <svinota.saveliev@gmail.com>
Richard Miller <millerresearch@gmail.com>
+Rob Kroeger <robkroeger@gmail.com>
Rob Pike <robpike@gmail.com>
Russ Cox <rsc@swtch.com>
Sean McKean <smckean83@gmail.com>
(DIR) 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