summaryrefslogtreecommitdiffstats
path: root/.bash_profile
blob: 3a688c7586cb1cc0ad53c63ffe9368d9e11ee69f (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
29
30
#!/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
  KICS_QUERIES_PATH=$(brew --prefix)/opt/kics/share/kics/assets/queries
  export KICS_QUERIES_PATH
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