blob: 0b87148345cbe891e704d9db041b9d1a8cbb54e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
# shellcheck disable=SC1091
# Disables file doesn't exist warning
# macOS specific
if [[ "$OSTYPE" == darwin* ]]; then
# Homebrew Apple M1/Intel fixing of $PATH and loading bash_completion
if [ -d /opt/homebrew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
source "/opt/homebrew/etc/bash_completion"
elif [ -d /usr/local/Homebrew ]; then
eval "$(/usr/local/Homebrew/bin/brew shellenv)"
source "/usr/local/Homebrew/etc/bash_completion"
fi
# Custom colors (not LS_COLORS as unix) defaultscheme "exfxcxdxbxegedabagacad"
export LSCOLORS=gxfxcxdxbxegedabagacad
# Silence new macOS warning about bash
export BASH_SILENCE_DEPRECATION_WARNING=1
fi
if [ -f "$HOME/.profile" ]; then
source "$HOME/.profile"
fi
# *nix include bashrc if found and override here
if [ -f "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi
|