.bashrc.d/20nobeep: Add missing ~/ prefix to one .mozilla path
[dotfiles-public.git] / src / .bash_profile
index e2bb5a61272cc804935a36813cac9c72f5557bca..2fa9feeaa3dfa709f2b9e8e7383943fd10438aa0 100644 (file)
@@ -1,18 +1,34 @@
 # 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