diff options
Diffstat (limited to 'home')
-rw-r--r-- | home/.bash_profile | 6 | ||||
-rw-r--r-- | home/.bashrc | 10 |
2 files changed, 15 insertions, 1 deletions
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 @@ | |||
1 | #!/usr/local/bin/bash | 1 | #!/usr/local/bin/bash |
2 | # | ||
2 | # FILE : dotfiles.core/home/.bash_profile | 3 | # FILE : dotfiles.core/home/.bash_profile |
3 | # TARGET: ~/.bash_profile | 4 | # TARGET: ~/.bash_profile |
4 | # AUTHOR: tgwil | 5 | # AUTHOR: tgwil |
6 | # | ||
7 | # This is run by bash on startup. | ||
8 | # It loads each .bashrc.X file if it exists. | ||
9 | |||
5 | 10 | ||
6 | # If .bashrc exists, use it | 11 | # If .bashrc exists, use it |
7 | if [[ $- == *i* && -f ~/.bashrc ]]; then | 12 | if [[ $- == *i* && -f ~/.bashrc ]]; then |
8 | . ~/.bashrc | 13 | . ~/.bashrc |
9 | fi | 14 | fi |
10 | 15 | ||
16 | |||
11 | # If .bashrc.personal exists, use it. | 17 | # If .bashrc.personal exists, use it. |
12 | if [[ $- == *i* && -f ~/.bashrc.personal ]]; then | 18 | if [[ $- == *i* && -f ~/.bashrc.personal ]]; then |
13 | . ~/.bashrc.personal | 19 | . ~/.bashrc.personal |
diff --git a/home/.bashrc b/home/.bashrc index 7496612..5d0b391 100644 --- a/home/.bashrc +++ b/home/.bashrc | |||
@@ -1,13 +1,21 @@ | |||
1 | #!/usr/local/bin/bash | 1 | #!/usr/local/bin/bash |
2 | # | ||
2 | # FILE : dotfiles.core/home/.bashrc | 3 | # FILE : dotfiles.core/home/.bashrc |
3 | # TARGET: ~/.bashrc | 4 | # TARGET: ~/.bashrc |
4 | # AUTHOR: tgwil | 5 | # AUTHOR: tgwil |
6 | # | ||
7 | # This is the core Bash configuration for all TGWIL accounts on all | ||
8 | # systems. It contains only those configurations which are applicable | ||
9 | # to (almost ) every situation. Situational configurations should go | ||
10 | # in their respective situational repositories. | ||
11 | |||
5 | 12 | ||
6 | # Test for interactive shell | 13 | # Test for interactive shell |
7 | if [[ $- != *i* ]]; then | 14 | if [[ $- != *i* ]]; then |
8 | return | 15 | return |
9 | fi | 16 | fi |
10 | 17 | ||
18 | |||
11 | ## Bash completion | 19 | ## Bash completion |
12 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \ | 20 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \ |
13 | && source /usr/local/share/bash-completion/bash_completion.sh | 21 | && source /usr/local/share/bash-completion/bash_completion.sh |