aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Williams <tgwil@tgwil.net>2024-10-12 06:56:19 -0400
committerTristan Williams <tgwil@tgwil.net>2024-10-12 06:56:19 -0400
commit2fc00fab9c71934fde3411539fab0315aa06ab65 (patch)
tree214e6f1b0e5fb04114c083bd2dab794648e24945
parentAdd installation instructions to README.md (diff)
downloaddotfiles.core-2fc00fab9c71934fde3411539fab0315aa06ab65.tar.gz
dotfiles.core-2fc00fab9c71934fde3411539fab0315aa06ab65.tar.bz2
dotfiles.core-2fc00fab9c71934fde3411539fab0315aa06ab65.zip
Fix comments and formatting
-rw-r--r--home/.bash_profile6
-rw-r--r--home/.bashrc10
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
7if [[ $- == *i* && -f ~/.bashrc ]]; then 12if [[ $- == *i* && -f ~/.bashrc ]]; then
8 . ~/.bashrc 13 . ~/.bashrc
9fi 14fi
10 15
16
11# If .bashrc.personal exists, use it. 17# If .bashrc.personal exists, use it.
12if [[ $- == *i* && -f ~/.bashrc.personal ]]; then 18if [[ $- == *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
7if [[ $- != *i* ]]; then 14if [[ $- != *i* ]]; then
8 return 15 return
9fi 16fi
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