-
Notifications
You must be signed in to change notification settings - Fork 3
/
.bashrc
30 lines (24 loc) · 1 KB
/
.bashrc
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
#!/usr/bin/env bash
# Setup homebrew env vars
# Note: PATH will be overwritten later
if [[ "$(/usr/bin/arch)" == "i386" ]]; then
eval "$(/usr/local/bin/brew shellenv)"
else
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# needs to happen before sourcing the other files, especially .path
export HOMEBREW_PREFIX_X86="$(/usr/local/bin/brew --prefix)"
export HOMEBREW_PREFIX_ARM64="$(/opt/homebrew/bin/brew --prefix)"
for file in ~/.{aliases,bash_aliases,dockerfunc,extra,functions,fzf.bash,path}; do
[[ -r "$file" ]] && [[ -f "$file" ]] && source "$file";
done;
unset file;
# Added by OrbStack: command-line tools and integration
source "${HOME}/.orbstack/shell/init.zsh" 2>/dev/null || :
# google-cloud-sdk completions
[[ -f "${HOMEBREW_PREFIX}/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc" ]] \
&& source "${HOMEBREW_PREFIX}/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc"
# https://starship.rs
if command -v starship > /dev/null ; then
eval "$(starship init bash)"
fi