-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
46 lines (34 loc) · 1.15 KB
/
.bash_profile
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
source ~/.secrets
# Shh macOS
export BASH_SILENCE_DEPRECATION_WARNING=1
# Aliases
alias ll='ls -latr'
alias dockerbad='docker system prune -a --volumes'
alias dce='docker compose exec'
alias cleards="find . -name '.DS_Store' -type f -delete"
alias freechromium="xattr -dr com.apple.quarantine /Applications/Chromium.app/"
# Load bash prompt style
[[ -f "$HOME/.bash_prompt" ]] && . "$HOME/.bash_prompt"
# Load git autocomplete
[[ -f "$HOME/.git-completion.bash" ]] && . "$HOME/.git-completion.bash"
# Initialize
cd ~/Developer
PROMPT_COMMAND="tab_title ; $PROMPT_COMMAND"
# Set the terminal tab title to current directory
function tab_title {
echo -n -e "\033]0;${PWD##*/}\007"
}
# Node version manager
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Ruby version manager
eval "$(/opt/homebrew/bin/rbenv init - bash)"
# Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"
# Rustup
. "$HOME/.cargo/env"
# Postgres
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
# Set Go path
export GOPATH="/Users/tbolt/Developer/go"