# This file is sourced by bash for login shells.
-# set PATH so it includes user's private bin if it exists
-if [ -d ~/bin ]; then
- PATH=~/bin:"${PATH}"
+# 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
# 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