From 627bb90fcbc86572a034c3bc9bc9c02a4586c2a4 Mon Sep 17 00:00:00 2001 From: Tristan Williams Date: Thu, 10 Oct 2024 00:23:18 -0400 Subject: Add support for .bashrc.personal I split my dotfiles into modular repositories. This repository is the core, so it makes sense to initialize other stuff here. --- home/.bash_profile | 8 +++++++- home/.bashrc | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'home') diff --git a/home/.bash_profile b/home/.bash_profile index c2a4763..ee621b3 100644 --- a/home/.bash_profile +++ b/home/.bash_profile @@ -1,8 +1,14 @@ #!/usr/local/bin/bash -# ~/.bash_profile +# FILE : dotfiles.core/home/.bash_profile +# TARGET: ~/.bash_profile # AUTHOR: tgwil # 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 +fi diff --git a/home/.bashrc b/home/.bashrc index b1f7ea4..7496612 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -1,5 +1,6 @@ #!/usr/local/bin/bash -# ~/.bashrc +# FILE : dotfiles.core/home/.bashrc +# TARGET: ~/.bashrc # AUTHOR: tgwil # Test for interactive shell -- cgit v1.2.3