projects
/
dotfiles-public.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d8da54
)
Add `which calendar` test to calendar call in .bash_profile.
author
W. Trevor King
<wking@drexel.edu>
Mon, 19 Dec 2011 02:34:58 +0000
(21:34 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Mon, 19 Dec 2011 02:34:58 +0000
(21:34 -0500)
src/.bash_profile
patch
|
blob
|
history
diff --git
a/src/.bash_profile
b/src/.bash_profile
index 5c790a47edc0074f9325fc5bf1ae8a8c70217c31..b946370ebfd380858abc2534f42443c049e06b4b 100644
(file)
--- a/
src/.bash_profile
+++ b/
src/.bash_profile
@@
-13,6
+13,7
@@
fi
# print my calendar if I've configured it
# http://bsdcalendar.sourceforge.net/ (Gentoo: app-misc/calendar)
-if [ -f ~/.calendar/calendar ]; then
+CALENDAR=$(which calendar 2> /dev/null)
+if [ -n "${CALENDAR}" ] && [ -f ~/.calendar/calendar ]; then
calendar
fi