diff --git a/files/.bashrc b/files/.bashrc index 9ccb601..a6e415b 100644 --- a/files/.bashrc +++ b/files/.bashrc @@ -27,14 +27,11 @@ shopt -s autocd export TERM=xterm-color # Alias definitions. -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi +[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases # set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ]; then - PATH="$HOME/bin:$PATH:$HOME/.local/bin" -fi +[[ -d "$HOME/bin" ]] && PATH="$PATH:$HOME/bin" +[[ -d "$HOME/.local/bin" ]] && PATH="$PATH:$HOME/.local/bin" # source misc user scripts if [ -d ~/git/dotfiles/source ]; then diff --git a/files/.profile b/files/.profile index e11961c..b235f3b 100644 --- a/files/.profile +++ b/files/.profile @@ -6,4 +6,4 @@ if [ -d ~/git/dotfiles ] ; then for f in ./files/.*; do if [[ -f $f ]]; then ln ./$f ../../ ; fi; done) fi -. ~/.bashrc +[[ -f ~/.bashrc ]] && . ~/.bashrc