From 2fc00fab9c71934fde3411539fab0315aa06ab65 Mon Sep 17 00:00:00 2001 From: Tristan Williams Date: Sat, 12 Oct 2024 06:56:19 -0400 Subject: Fix comments and formatting --- home/.bash_profile | 6 ++++++ home/.bashrc | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/home/.bash_profile b/home/.bash_profile index ee621b3..b12cc06 100644 --- a/home/.bash_profile +++ b/home/.bash_profile @@ -1,13 +1,19 @@ #!/usr/local/bin/bash +# # FILE : dotfiles.core/home/.bash_profile # TARGET: ~/.bash_profile # AUTHOR: tgwil +# +# This is run by bash on startup. +# It loads each .bashrc.X file if it exists. + # If .bashrc exists, use it if [[ $- == *i* && -f ~/.bashrc ]]; then . ~/.bashrc fi + # If .bashrc.personal exists, use it. if [[ $- == *i* && -f ~/.bashrc.personal ]]; then . ~/.bashrc.personal diff --git a/home/.bashrc b/home/.bashrc index 7496612..5d0b391 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -1,13 +1,21 @@ #!/usr/local/bin/bash +# # FILE : dotfiles.core/home/.bashrc # TARGET: ~/.bashrc # AUTHOR: tgwil +# +# This is the core Bash configuration for all TGWIL accounts on all +# systems. It contains only those configurations which are applicable +# to (almost ) every situation. Situational configurations should go +# in their respective situational repositories. + # Test for interactive shell if [[ $- != *i* ]]; then return fi + ## Bash completion [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \ -&& source /usr/local/share/bash-completion/bash_completion.sh + && source /usr/local/share/bash-completion/bash_completion.sh -- cgit v1.2.3