-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
58 lines (41 loc) · 1.43 KB
/
bashrc
File metadata and controls
58 lines (41 loc) · 1.43 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
# shut up, apple
export BASH_SILENCE_DEPRECATION_WARNING=1
# load git-aware-prompt for git info in bash prompt
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source "${GITAWAREPROMPT}/main.sh"
# prompt with pretty colors and git branch
export PS1="\t \[$txtgrn\]\u@\h \[$txtylw\]\w \[$txtblu\]\$git_branch\$git_dirty\[$txtrst\]> "
# do bash completion
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
# for `psql`
export PATH="$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin"
# for tmuxinator
alias mux=tmuxinator
# for nvim
alias vim=nvim
alias pn=pnpm
alias np=pnpm
export EDITOR=nvim
export GIT_EDITOR=nvim
# allows brew-installed programs to be executed over system installs
export PATH="/usr/local/bin:$PATH"
# same as above, but when homebrew is installed to a different directory
export PATH="$HOME/stuff/homebrew/bin:$PATH"
# latest homebrew uses this?
eval "$(/opt/homebrew/bin/brew shellenv)"
# initialize rbenv
# eval "$(rbenv init -)"
# initialize nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# fzf
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# yarn
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH