-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
136 lines (104 loc) · 3.36 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
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
131
132
133
134
135
136
#!/usr/bin/env bash
# Go Settings
export GOPATH=~/workspace/Go
launchctl setenv GOPATH $GOPATH
export PATH=$PATH:$GOPATH/bin:$HOME/scripts:$HOME/bin;
# Homebrew
export PATH=$PATH:/usr/local/sbin
# rbenv
eval "$(rbenv init -)"
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# aliases
alias ll="ls -laG"
alias env="env | sort"
alias set-proxy="source $HOME/scripts/set-proxy.sh"
alias unset-proxy="source $HOME/scripts/unset-proxy.sh"
alias watch="watch -c"
# Java
export JAVA_HOME=$(/usr/libexec/java_home)
launchctl setenv JAVA_HOME $JAVA_HOME
# Maven
export M2_HOME=$(brew --prefix maven)/libexec
export M2=$M2_HOME/bin
export PATH=$PATH:$M2
# AWS
export LC_ALL=en_US.UTF-8
launchctl setenv LC_ALL $LC_ALL
export LANG=en_US.UTF-8
launchctl setenv LANG $LANG
# Path to the bash it configuration
export BASH_IT=$HOME/.bash_it
# Lock and Load a custom theme file
# location /.bash_it/themes/
#export BASH_IT_THEME='bobby'
export PS1="\n\[\e[33m\]\w\[\e[m\] \$ "
export TERM="screen-256color"
# Your place for hosting Git repos. I use this for private repos.
export GIT_HOSTING='[email protected]'
# Set my editor and git editor
#export EDITOR="/usr/bin/mate -w"
#export GIT_EDITOR='/usr/bin/mate -w'
# Set the path nginx
export NGINX_PATH='/opt/nginx'
# Don't check mail when opening terminal.
unset MAILCHECK
# Change this to your console based IRC client of choice.
export IRC_CLIENT='irssi'
# Set this to the command you use for todo.txt-cli
export TODO="t"
# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
# Set vcprompt executable path for scm advance info in prompt (demula theme)
# https://github.com/xvzf/vcprompt
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt
#
# cloud_controller_ng
#
#export DB_CONNECTION_STRING="mysql2://root:password@localhost:3306/cc_test"
#export DB="mysql"
# Load Bash It
source $BASH_IT/bash_it.sh
# direnv
eval "$(direnv hook bash)"
#
# export the path for UI programs such as Checkman
#
launchctl setenv PATH $PATH
#
# ensure we have increased process open file limit
#
# The real increase happens on system level via
# http://docs.basho.com/riak/latest/ops/tuning/open-files-limit/
#
#ulimit -n 524288
#ulimit -u 1024
# fix for MacVIM, Python, YCM & vim incompatibility
export DYLD_FORCE_FLAT_NAMESPACE=1
# abacus dev
export ABACUS_HOME=/Users/development/workspace/cf-abacus
export NO_ISTANBUL=true
# iTerm shell integration
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
# BASH completion
export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
# kubectl
#source <(kubectl completion bash)
# append history instead of rewriting it
shopt -s histappend
# allow a larger history file
export HISTFILESIZE=1000000
export HISTSIZE=1000000
# ignore duplicates and commands that start with space
export HISTCONTROL=ignoreboth
# ignore these commands
export HISTIGNORE='ls:bg:fg:history'
# record timestamps
export HISTTIMEFORMAT='%F %T '
# use one command per line
shopt -s cmdhist
# go to working directory
cd workspace