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. --- README.md | 5 ++++- home/.bash_profile | 8 +++++++- home/.bashrc | 3 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d70b679..365e1b6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ # TGWIL Dotfiles.Core -These are my core dotfiles. They are used on every account on every machine. +These are my core dotfiles. They are used on every account on every machine, including root. + +My other dotfiles: +- [dotfiles.personal](http://git.tgwil.net/dotfiles.personal/) for personal accounts. 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