From 07fdbe0495a9ff8419b6aac7092b5e53f22937ff Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 26 Feb 2023 01:36:59 -0500 Subject: [PATCH] Auto Update --- files/.bashrc | 9 +++------ files/.profile | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) 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