# This file is sourced by bash for login shells.
+# include system binaries
+PATH="${PATH}":/usr/sbin:/sbin
+
+# set PATH so it includes ruby gems, if they exist
+for GEM_BIN in ~/.gem/ruby/*/bin; do
+ if [ -d "${GEM_BIN}" ]; then
+ PATH="${GEM_BIN}":"${PATH}"
+ fi
+done
+
+# set PATH so it includes user's local bin if it exists
+if [ -d "${HOME}"/.local/bin ]; then
+ PATH="${HOME}"/.local/bin:"${PATH}"
+fi
+
+# set PATH so it includes user's personal bin if it exists
+if [ -d "${HOME}"/bin ]; then
+ PATH="${HOME}"/bin:"${PATH}"
+fi
+
# The following line runs your .bashrc and is recommended by the bash
# info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
-# set PATH so it includes user's private bin if it exists
-if [ -d ~/bin ]; then
- PATH=~/bin:"${PATH}"
-fi
-
#exec screen -R # automatically attach to first detached session if it exists
# print my calendar if I've configured it
# http://bsdcalendar.sourceforge.net/ (Gentoo: app-misc/calendar)
-if [ -f ~/.calendar/calendar ]; then
- calendar
+CALENDAR=$(command -v calendar)
+if [ -n "${CALENDAR}" ] && [ -f ~/.calendar/calendar ]; then
+ calendar
fi