# update the values of LINES and COLUMNS.
shopt -s checkwinsize
-source .bashrc.d/environment
-#source .bashrc.d/screen
-#source .bashrc.d/completion
-#source .bashrc.d/nobeep
-#source .bashrc.d/lesspipe
-source .bashrc.d/ssh_agent
-source .bashrc.d/gpg_agent
+source ~/.bashrc.d/environment
+#source ~/.bashrc.d/screen
+#source ~/.bashrc.d/completion
+#source ~/.bashrc.d/nobeep
+#source ~/.bashrc.d/lesspipe
+source ~/.bashrc.d/ssh_agent
+source ~/.bashrc.d/gpg_agent
# load aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
-source "${DOTFILES_DIR}/src/.bashrc.d/dotfiles"
+source ~/src/dotfiles/public/src/.bashrc.d/dotfiles
# Run the dotfiles.sh script if it exists
-DS="${DOTFILES_DIR}/bin/dotfiles.sh"
-if [ -f "${DS}" ] && [ -x "${DS}" ]; then
- "${DS}";
+DS="$(which dotfiles.sh)"
+if [ -n "${DS}" ] && [ -f "${DS}" ] && [ -x "${DS}" ]; then
+ "${DS}" --dotfiles-dir ~/src/dotfiles update
fi
-# path to local dotfiles checkout
-export DOTFILES_DIR=~/"src/dotfiles"
-
# define default programs
export EDITOR="/usr/bin/emacs -nw"
export PAGER="less"