summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorBenjamin Chaussé <Benjamin.Chausse@goto.com>2024-05-12 03:58:55 -0400
committerBenjamin Chaussé <Benjamin.Chausse@goto.com>2024-05-12 03:58:55 -0400
commit3d1d3908bd36d00d446fad6a9375f65681fafdb5 (patch)
tree7bcaa82c93d13c95daed9d3074f8b8b3d72520af /.profile
parent248b07dc0a141afbc3229984c33604cd9b69e3ab (diff)
Update more stuff
Diffstat (limited to '.profile')
-rw-r--r--.profile9
1 files changed, 8 insertions, 1 deletions
diff --git a/.profile b/.profile
index f15b4b8..b04b8ae 100644
--- a/.profile
+++ b/.profile
@@ -1,6 +1,13 @@
#!/bin/sh
# shellcheck disable=SC2155
+# enable certain tools only if on macOS
+case "$OSTYPE" in
+ darwin*)
+ eval "$(/opt/homebrew/bin/brew shellenv)"
+ ;;
+esac
+
unsetopt PROMPT_SP 2>/dev/null
# Applications
@@ -16,7 +23,7 @@ export XDG_CACHE_HOME="$HOME/.cache"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
# Path
-export PATH="$PATH:$(find $HOME/.local/bin -type d | paste -sd ":" -)"
+export PATH="$PATH:$(find "$HOME/.local/bin" -type d | paste -sd ":" -)"
export PATH="$PATH:$GOPATH/bin"
export PATH="$PATH:$HOME/.cargo/bin"
export PATH="$PATH:/root/.local/bin"