-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
115 lines (92 loc) · 3.28 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
114
115
export DOTFILES_HOME="$HOME/src/rsanheim/dotfiles"
export DOTFILES_PRIVATE_HOME="$HOME/src/rsanheim/dotfiles-private"
export BUNDLE_CACHE_ALL_PLATFORMS=1
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
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
export FIREFOX="/Applications/Firefox.app/Contents/MacOS/firefox"
alias firefox="/Applications/Firefox.app/Contents/MacOS/firefox"
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
# homebrew pinned Mysql 8.0 setup
if [ -d "/opt/homebrew/opt/[email protected]/" ]; then
export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/[email protected]/lib/pkgconfig"
PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"
# To start mysql 8.0 interactively
# /opt/homebrew/opt/[email protected]/bin/mysqld_safe --datadir\=/opt/homebrew/var/mysql
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
[[ -r "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh" ]] && . "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh"
# CircleCI CLI wants to auto update every day, which is far too frequent
# See https://github.com/CircleCI-Public/circleci-cli/issues/839
export CIRCLECI_CLI_SKIP_UPDATE_CHECK=true
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="cursor --wait"
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
# asdf
. /opt/homebrew/opt/asdf/libexec/asdf.sh
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi