From b05f1d7a2338ad5f398190370e415a795d792d46 Mon Sep 17 00:00:00 2001 From: icedrocket <114203630+icedrocket@users.noreply.github.com> Date: Mon, 7 Nov 2022 06:32:16 +0900 Subject: [PATCH] style: use constant styles in .bash* --- dot-bash_profile | 2 +- dot-bashrc | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/dot-bash_profile b/dot-bash_profile index 55136b9..baaaa32 100644 --- a/dot-bash_profile +++ b/dot-bash_profile @@ -2,7 +2,7 @@ # Get the aliases and functions if [ -f ~/.bashrc ]; then - . ~/.bashrc + . ~/.bashrc fi # User specific environment and startup programs diff --git a/dot-bashrc b/dot-bashrc index ad4581e..1ed1d53 100644 --- a/dot-bashrc +++ b/dot-bashrc @@ -2,12 +2,11 @@ # Source global definitions if [ -f /etc/bashrc ]; then - . /etc/bashrc + . /etc/bashrc fi # User specific environment -if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] -then +if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then PATH="$HOME/.local/bin:$HOME/bin:$PATH" fi export PATH @@ -17,11 +16,10 @@ export PATH # User specific aliases and functions if [ -d ~/.bashrc.d ]; then - for rc in ~/.bashrc.d/*; do - if [ -f "$rc" ]; then - . "$rc" - fi - done + for rc in ~/.bashrc.d/*; do + if [ -f "$rc" ]; then + . "$rc" + fi + done fi - unset rc