.sh

Multi-shell dotfiles manager
git clone https://git.torresjrjr.com/.sh.git
Log | Files | Refs | README | LICENSE

commit 6ef8606559719a6b85d84f22e928a0fd4859513a
parent c0fd6fed3e4408f04f384cd9ea5fa54465970a09
Author: Byron Torres <b@torresjrjr.com>
Date:   Wed, 28 Jul 2021 11:50:48 +0100

Reformat source statements

Diffstat:
Mbash/.bashrc | 8++++----
Msh/.init.sh | 4++--
Msh/.profile | 7+++----
Mzsh/.zprofile | 2+-
Mzsh/.zshrc | 8++++----
5 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/bash/.bashrc b/bash/.bashrc @@ -7,7 +7,7 @@ ## Common -source "$DOTSHELL/sh/.init.sh" +. "$DOTSHELL/sh/.init.sh" ## Env @@ -18,10 +18,10 @@ HISTFILE="$XDG_CACHE_HOME/bash/histfile" ## Aliases -alias rs='clear; source $DOTSHELL/bash/.bashrc' # overwrites +alias rs='clear; . $DOTSHELL/bash/.bashrc' # overrides ## Local -test -f "$DOTSHELL/local/.bashrc" && - source "$DOTSHELL/local/.bashrc" +[ -f "$DOTSHELL/local/.bashrc" ] && + . "$DOTSHELL/local/.bashrc" diff --git a/sh/.init.sh b/sh/.init.sh @@ -68,8 +68,8 @@ gitlf() { ## Local -test -f "$DOTSHELL/local/.init.sh" && - . "$DOTSHELL/local/.init.sh" +[ -f "$DOTSHELL/local/.init.sh" ] && + . "$DOTSHELL/local/.init.sh" ## Runtime diff --git a/sh/.profile b/sh/.profile @@ -33,12 +33,11 @@ export PASSWORD_STORE_DIR="$HOME/.pass" ## Local -test -f "$DOTSHELL/local/.profile" && - . "$DOTSHELL/local/.profile" +[ -f "$DOTSHELL/local/.profile" ] && + . "$DOTSHELL/local/.profile" ## Runtime # interactive login bash doesn't source .bashrc -test -n "${BASH_VERSION}" && - . "$DOTSHELL/bash/.bashrc" +[ -n "${BASH_VERSION}" ] && . "$DOTSHELL/bash/.bashrc" diff --git a/zsh/.zprofile b/zsh/.zprofile @@ -6,4 +6,4 @@ ## Common -source "$DOTSHELL/sh/.profile" +. "$DOTSHELL/sh/.profile" diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -6,7 +6,7 @@ ## Common -source "$DOTSHELL/sh/.init.sh" +. "$DOTSHELL/sh/.init.sh" ## Settings @@ -36,13 +36,13 @@ SAVEHIST=1000 ## Aliases -alias rs='clear; source $DOTSHELL/zsh/.zshrc' # overwrites +alias rs='clear; . $DOTSHELL/zsh/.zshrc' # overrides ## Local -test -f "$DOTSHELL/local/.zshrc" && - source "$DOTSHELL/local/.zshrc" +[ -f "$DOTSHELL/local/.zshrc" ] && + . "$DOTSHELL/local/.zshrc" ## Misc