-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
60 lines (41 loc) · 1.67 KB
/
bash_profile
File metadata and controls
60 lines (41 loc) · 1.67 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
export LOCAL_IP=`ifconfig -a|grep broadcast|cut -d ' ' -f 2`
export PATH=/opt/homebrew/bin:~/.rbenv/shims:./bin:/usr/local/sbin:$PATH
# Make sure to use ruby from rbenv instead of system
eval "$(rbenv init -)"
# Use openssl from rbenv
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
stty -ixon # enable ctrl-s forward i-search
export HISTCONTROL=ignoreboth:erasedupsa # no dups in command history
export BUNDLER_EDITOR=code
# Bash completion
[[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"
# Git prompt
if [ -f "/$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
__GIT_PROMPT_DIR="/$(brew --prefix)/opt/bash-git-prompt/share"
source "/$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
fi
# bash completion
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
# Docker
# eval "$(docker-machine env default)"
. ~/.aliasrc
export EDITOR=vim
# export LDFLAGS="-L/usr/local/opt/qt@5.5/lib"
# export CPPFLAGS="-I/usr/local/opt/qt@5.5/include"
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
_nvmrc_hook() {
if [[ $PWD == $PREV_PWD ]]; then
return
fi
PREV_PWD=$PWD
[[ -f ".nvmrc" ]] && nvm use
}
if ! [[ "${PROMPT_COMMAND:-}" =~ _nvmrc_hook ]]; then
PROMPT_COMMAND="_nvmrc_hook${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
fi
export BASH_SILENCE_DEPRECATION_WARNING=1
export ANDROID_HOME=/Users/trusche/Library/Android/sdk
export PATH=./bin:$PATH