From: Jannik ZANDER Date: Tue, 3 May 2016 21:00:16 +0000 (+0200) Subject: Cosmetic bash update X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=e99f3c2d78542c060742bdfe2c62e99dfb1ed38f;p=dotfiles.git Cosmetic bash update --- diff --git a/.bash_profile b/.bash_profile index b9cb38a..abe2a13 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,6 +1,4 @@ # User dependent .bash_profile file # source the users bashrc if it exists -if [ -f "${HOME}/.bashrc" ] ; then - source "${HOME}/.bashrc" -fi +[ -f "${HOME}/.bashrc" ] && source "${HOME}/.bashrc" diff --git a/.bashrc b/.bashrc index 3d5fddf..7bb9f79 100644 --- a/.bashrc +++ b/.bashrc @@ -5,9 +5,10 @@ #[ -n "$PS1" ] && source ~/.bash_profile; # Load settings -for file in ~/.bash/*; do +for file in "${HOME}/.bash/*"; do [ -f "$file" ] && source "$file"; done; # Local/private settings -[ -f ~/.bashrc_local ] && source ~/.bashrc_local; +[ -f "${HOME}/.bashrc_local" ] && source "${HOME}/.bashrc_local" + diff --git a/.vimrc b/.vimrc index 58821e1..dbd9843 100644 --- a/.vimrc +++ b/.vimrc @@ -51,7 +51,6 @@ set modeline set modelines=1 set so=7 set wildmenu -set showcmd set nostartofline set confirm set cmdheight=2