.bashrc.d/01detect_system: Use os-release to detect Arch
[dotfiles-public.git] / src / .bash_profile
1 # This file is sourced by bash for login shells.
2
3 # include system binaries
4 PATH="${PATH}":/usr/sbin:/sbin
5
6 # set PATH so it includes ruby gems, if they exist
7 for GEM_BIN in ~/.gem/ruby/*/bin; do
8         if [ -d "${GEM_BIN}" ]; then
9                 PATH="${GEM_BIN}":"${PATH}"
10         fi
11 done
12
13 # set PATH so it includes user's local bin if it exists
14 if [ -d "${HOME}"/.local/bin ]; then
15         PATH="${HOME}"/.local/bin:"${PATH}"
16 fi
17
18 # set PATH so it includes user's personal bin if it exists
19 if [ -d "${HOME}"/bin ]; then
20         PATH="${HOME}"/bin:"${PATH}"
21 fi
22
23 # The following line runs your .bashrc and is recommended by the bash
24 # info pages.
25 [[ -f ~/.bashrc ]] && . ~/.bashrc
26
27 #exec screen -R # automatically attach to first detached session if it exists
28
29 # print my calendar if I've configured it
30 # http://bsdcalendar.sourceforge.net/  (Gentoo: app-misc/calendar)
31 CALENDAR=$(command -v calendar)
32 if [ -n "${CALENDAR}" ] && [ -f ~/.calendar/calendar ]; then
33         calendar
34 fi