#!/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