summaryrefslogtreecommitdiffstats
path: root/.profile
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2023-08-28 13:57:44 -0700
committerTyler Davis <tyler@gluecode.net>2023-08-28 13:57:44 -0700
commit1d7845aabb0cf88ec59cbd0e04ad284a0c6a59af (patch)
tree98b2ba405cdfbc0867fd440116240eba77bd08b5 /.profile
parent18bcd7ae160e48a83115549cec684ee5a41bcc03 (diff)
downloaddotfiles-1d7845aabb0cf88ec59cbd0e04ad284a0c6a59af.tar.gz
dotfiles-1d7845aabb0cf88ec59cbd0e04ad284a0c6a59af.zip
sh: edit profile for alt bashes
Diffstat (limited to '.profile')
-rw-r--r--.profile7
1 files changed, 3 insertions, 4 deletions
diff --git a/.profile b/.profile
index 567a3f7..d9597f9 100644
--- a/.profile
+++ b/.profile
@@ -16,7 +16,6 @@ if [ -d "$HOME/.golang" ]; then
export PATH=$HOME/.golang/go/bin:$PATH:$HOME/.cargo/bin:$HOME/.golang/path/bin:$HOME/.local/bin
fi
-
# == Editors ==
# Vim not detected? Use vi as a fallback
if [ ! "$(command -v vim)" ]; then
@@ -72,13 +71,13 @@ fi
# === OSX ===
if [ "$(uname -s)" = "Darwin" ]; then
# Make bash more posix compliant
- if [ $SHELL = "/bin/bash" ]; then
+ if [ $SHELL = "/bin/bash" ] || [ $SHELL = "/opt/homebrew/bin/bash" ] || [ $SHELL = "/opt/local/bin/bash" ] ; then
set -o posix
# OSX-specific bash warning
export BASH_SILENCE_DEPRECATION_WARNING=1
fi
- if [ -d '/opt/local' ]; then
+ if [ -d '/opt/local' ]; then
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
export MANPATH=/opt/local/share/man:$MANPATH
fi
@@ -145,6 +144,6 @@ USER=$(id -un)
HOSTNAME=$(uname -n)
export PS1='$USER@$HOSTNAME:$PWD/\$ '
-if [ $SHELL = "/bin/bash" ]; then
+if [ $SHELL = "/bin/bash" ] || [ $SHELL = "/opt/homebrew/bin/bash" ]; then
if [ -f "$HOME/.bashrc" ]; then . $HOME/.bashrc; fi
fi