-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
113 lines (89 loc) · 2.87 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
export DOTFILES_HOME="$HOME/src/rsanheim/dotfiles"
export DOTFILES_PRIVATE_HOME="$HOME/src/rsanheim/dotfiles-private"
source "$DOTFILES_HOME/bin/functions"
if [ "$(uname -m)" = "x86_64" ]; then
eval "$(/usr/local/bin/brew shellenv)"
else
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
PATH="/usr/local/sbin:$PATH"
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
for file in $DOTFILES_HOME/bash/*.sh; do
[[ -r $file ]] && source $file
done
for file in $DOTFILES_PRIVATE_HOME/bash/*.sh; do
[[ -r $file ]] && source $file
done
if test "${PS1+set}"; then
CDPATH=".:$HOME:$HOME/src:$HOME/work:$HOME/work/gems:$HOME/src/rsanheim:$HOME/src/oss"
fi
if [ -f "$DOTFILES_HOME/.private" ]; then
source "$DOTFILES_HOME/.private"
fi
# More open files
# https://gist.github.com/tombigel/d503800a282fcadbee14b537735d202c
ulimit -n 65536
ulimit -u 2048
# Docker Desktop user install
# if [ -d "$HOME/.docker/bin" ]; then
# PATH="$HOME/.docker/bin:$PATH"
# fi
if [ -d "$DOTFILES_HOME/bin" ]; then
PATH="$DOTFILES_HOME/bin:$PATH"
fi
if [ -d "$DOTFILES_PRIVATE_HOME/bin" ]; then
PATH="$DOTFILES_PRIVATE_HOME/bin:$PATH"
fi
if [ -d "$HOME/work/works-on-my-machine/bin" ]; then
PATH=$PATH:$HOME/work/works-on-my-machine/bin
fi
# for switching between local and cloud dev
if [ -f "$HOME/local-docker.sh" ]; then
source "$HOME/local-docker.sh"
fi
PYTHON_PATH="/usr/local/opt/python/libexec/bin"
# Use Python from Homebrew if its available
if [ -d "$PYTHON_PATH" ]; then
PATH="$PYTHON_PATH:$PATH"
fi
# Use a pinned Postgres install in homebrew if its there
POSTGRES_BREW_PATH="$(brew --prefix)/opt/postgresql@14/bin"
if [ -d "$POSTGRES_BREW_PATH" ]; then
PATH="$POSTGRES_BREW_PATH:$PATH"
export LDFLAGS="-L$(brew --prefix)/opt/postgresql@14/lib"
export CPPFLAGS="-I$(brew --prefix)opt/postgresql@14/include"
export PKG_CONFIG_PATH="$(brew --prefix)/opt/postgresql@14/lib/pkgconfig"
fi
# nice bash completion
if is_osx && [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# rbenv
if which rbenv >/dev/null; then eval "$(rbenv init -)"; fi
export HOMEBREW_NO_ANALYTICS=true
export HISTCONTROL=ignoredups
export HISTSIZE=10000
shopt -s histappend histverify
# set '**' to match all files and zero or more directories and subdirectories
shopt -s globstar
if [ -f "/usr/local/bin/code-insiders" ]; then
export EDITOR="code-insiders --wait"
else
export EDITOR="code --wait"
fi
export GIT_EDITOR="vim"
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
# asdf direnv
# PATH="$PATH:~/.asdf/bin"
# source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/bashrc"
export PATH="/opt/homebrew/opt/mysql@5.7/bin:$PATH"
if [ -f "/Users/rsanheim/work/dox-compose/bin/dox-init" ]; then
eval "$("/Users/rsanheim/work/dox-compose/bin/dox-init")"
fi
# Normal asdf
. /opt/homebrew/opt/asdf/libexec/asdf.sh