-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
130 lines (93 loc) · 3.5 KB
/
bashrc
File metadata and controls
130 lines (93 loc) · 3.5 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#!/bin/bash
. ~/.bash_colors
# git prompt goodnes
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWSTASHSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWUPSTREAM=verbose
PS1="${COLOR_RED}[${COLOR_WHITE}\t ${COLOR_NONE}\W${COLOR_GREEN}\$(__git_ps1 ' (%s)')${COLOR_RED}]${COLOR_NONE}\n\$ "
# Less settings
# --ignore-case is actually smart case, only ignores for lower case searches
# --chop-long-lines makes long lines scroll instead of wrapping
export LESS="--ignore-case --chop-long-lines"
# increase node memory limit
export NODE_OPTIONS=--max-old-space-size=4096
# Don't show macOS bash to zsh prompt
export BASH_SILENCE_DEPRECATION_WARNING=1
function name_tab() {
echo -ne "\033]0;$1\007"
}
export EDITOR='nvim'
export VISUAL='nvim'
export GOPATH=$HOME
# completion for my custom checkout command
_git_grepcheckout() {
_git_checkout
}
# Set PATH, MANPATH, etc., for Homebrew on arm64
[[ -s /opt/homebrew/bin/brew ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
# add Heroku Toolbelt to path
PATH=/usr/local/heroku/bin:$PATH
# add go bin to path
PATH=$HOME/bin:$PATH
# add Pulumi to the PATH
export PATH=$PATH:$HOME/.pulumi/bin
# add imagemagick6 to path
PATH=/usr/local/opt/imagemagick@6/bin:$PATH
export PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig"
# add gnu stuff to the path
PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH"
PATH="$(brew --prefix)/opt/gnu-time/libexec/gnubin:$PATH"
# avoid duplicates
export HISTCONTROL=ignoredups:erasedups
# append history entries
shopt -s histappend
# Make globs recursive
shopt -s globstar
# no limit on history
export HISTSIZE=
export HISTFILESIZE=
[[ -s `brew --prefix`/etc/autojump.sh ]] && source `brew --prefix`/etc/autojump.sh
[[ -s "$HOME/.asdf/asdf.sh" ]] && source "$HOME/.asdf/asdf.sh"
[[ -s "$HOME/.asdf/completions/asdf.bash" ]] && source "$HOME/.asdf/completions/asdf.bash"
# Volta - js toolchain manager
# pnpm
export PNPM_HOME="$HOME/Library/pnpm"
export PATH="$PNPM_HOME:$PATH"
# pnpm end
# Prefer brew llvm
# https://github.com/rustwasm/wasm-pack/issues/1381
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
[[ -s "$HOME/.amazon_keys" ]] && source "$HOME/.amazon_keys"
[[ -s "$HOME/.photo_gallery_facebook_secret" ]] && source "$HOME/.photo_gallery_facebook_secret"
[[ -s "$HOME/.private_bash_functions" ]] && source "$HOME/.private_bash_functions"
# load direnv
eval "$(direnv hook bash)"
[[ -s "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"
export EDITOR='nvim'
export GIT_EDITOR='nvim'
export VISUAL='nvim'
# bash completion (homebrew style)
# "/opt/homebrew/etc/profile.d/bash_completion.sh"
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
source ~/.bash_functions
source ~/.bash_aliases
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/robin/google-cloud-sdk/path.bash.inc' ]; then . '/Users/robin/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/robin/google-cloud-sdk/completion.bash.inc' ]; then . '/Users/robin/google-cloud-sdk/completion.bash.inc'; fi
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# Windsurf
export PATH="/Users/robin/.codeium/windsurf/bin:$PATH"
. "$HOME/.local/bin/env"
# Added by Antigravity CLI installer
export PATH="/Users/robin/.local/bin:$PATH"
# Added by Antigravity
export PATH="/Users/robin/.antigravity/antigravity/bin:$PATH"