diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-10 00:23:18 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-10 00:23:18 -0400 |
commit | 627bb90fcbc86572a034c3bc9bc9c02a4586c2a4 (patch) | |
tree | e2f095f1f60faec3cd050c4586208a07fa55e381 | |
parent | Add bash completion to .bashrc (diff) | |
download | dotfiles.core-627bb90fcbc86572a034c3bc9bc9c02a4586c2a4.tar.gz dotfiles.core-627bb90fcbc86572a034c3bc9bc9c02a4586c2a4.tar.bz2 dotfiles.core-627bb90fcbc86572a034c3bc9bc9c02a4586c2a4.zip |
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.
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | home/.bash_profile | 8 | ||||
-rw-r--r-- | home/.bashrc | 3 |
3 files changed, 13 insertions, 3 deletions
@@ -1,3 +1,6 @@ | |||
1 | # TGWIL Dotfiles.Core | 1 | # TGWIL Dotfiles.Core |
2 | 2 | ||
3 | These are my core dotfiles. They are used on every account on every machine. | 3 | These are my core dotfiles. They are used on every account on every machine, including root. |
4 | |||
5 | My other dotfiles: | ||
6 | - [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 @@ | |||
1 | #!/usr/local/bin/bash | 1 | #!/usr/local/bin/bash |
2 | # ~/.bash_profile | 2 | # FILE : dotfiles.core/home/.bash_profile |
3 | # TARGET: ~/.bash_profile | ||
3 | # AUTHOR: tgwil | 4 | # AUTHOR: tgwil |
4 | 5 | ||
5 | # If .bashrc exists, use it | 6 | # If .bashrc exists, use it |
6 | if [[ $- == *i* && -f ~/.bashrc ]]; then | 7 | if [[ $- == *i* && -f ~/.bashrc ]]; then |
7 | . ~/.bashrc | 8 | . ~/.bashrc |
8 | fi | 9 | fi |
10 | |||
11 | # If .bashrc.personal exists, use it. | ||
12 | if [[ $- == *i* && -f ~/.bashrc.personal ]]; then | ||
13 | . ~/.bashrc.personal | ||
14 | fi | ||
diff --git a/home/.bashrc b/home/.bashrc index b1f7ea4..7496612 100644 --- a/home/.bashrc +++ b/home/.bashrc | |||
@@ -1,5 +1,6 @@ | |||
1 | #!/usr/local/bin/bash | 1 | #!/usr/local/bin/bash |
2 | # ~/.bashrc | 2 | # FILE : dotfiles.core/home/.bashrc |
3 | # TARGET: ~/.bashrc | ||
3 | # AUTHOR: tgwil | 4 | # AUTHOR: tgwil |
4 | 5 | ||
5 | # Test for interactive shell | 6 | # Test for interactive shell |