aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-05-09 12:22:07 -0400
committerBenjamin Linskey2026-05-09 12:23:46 -0400
commit649450b4b772ba7ce97dc5a661e698d338cca85b (patch)
treef15c3e7e8c5f20b494dd5abf72fab165a6fbdb7d
parent1b1caca62156fbb72dbf3c32cbab94b7fe5fabf5 (diff)
downloaddotfiles-649450b4b772ba7ce97dc5a661e698d338cca85b.tar.gz

Add bash support for Linux

-rw-r--r--.profile6
-rw-r--r--Makefile2
2 files changed, 8 insertions, 0 deletions
diff --git a/.profile b/.profile
index 1683b17..3896768 100644
--- a/.profile
+++ b/.profile
@@ -11,6 +11,12 @@ export PATH="$HOME/bin:$PATH"
export ENV="$HOME"/.shrc
+if [ "$(uname)" = Linux ] && [ -n "${BASH_VERSION-}" ]; then
+ export BASH_ENV="$HOME"/.bashrc
+ # shellcheck disable=SC1090
+ . "$BASH_ENV"
+fi
+
export LC_CTYPE=en_US.UTF-8
# UTF-8 on FreeBSD (requires the vt console driver; see vt(4)).
diff --git a/Makefile b/Makefile
index 555d8b1..2df22d9 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,8 @@ install:
rm -f "$$HOME"/.bash_profile
find "$$PWD" -maxdepth 1 -name '.*' -not -name .git -not -name .DS_Store \
-not -name .gitignore -exec ln -sf {} "$$HOME" \;
+ if [ "$$(uname)" = Linux ]; then ln -sf "$$HOME"/.profile "$$HOME"/.bash_profile; fi
+ if [ "$$(uname)" = Linux ]; then ln -sf "$$HOME"/.shrc "$$HOME"/.bashrc; fi
# Regenerate Vim help tags.
if type vim >/dev/null 2>&1; then vim -e -s -u NONE -c 'helptags ALL' -c q; fi