diff options
| author | Benjamin Linskey | 2026-05-09 12:22:07 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-05-09 12:23:46 -0400 |
| commit | 649450b4b772ba7ce97dc5a661e698d338cca85b (patch) | |
| tree | f15c3e7e8c5f20b494dd5abf72fab165a6fbdb7d | |
| parent | 1b1caca62156fbb72dbf3c32cbab94b7fe5fabf5 (diff) | |
| download | dotfiles-649450b4b772ba7ce97dc5a661e698d338cca85b.tar.gz | |
Add bash support for Linux
| -rw-r--r-- | .profile | 6 | ||||
| -rw-r--r-- | Makefile | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -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)). @@ -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 |