forked from paulirish/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.exports
130 lines (88 loc) · 4.03 KB
/
.exports
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
[ -f ~/.exports.local ] && source ~/.exports.local
# highlighting inside manpages and elsewhere
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
##
## gotta tune that bash_history…
##
# timestamps for later analysis. www.debian-administration.org/users/rossen/weblog/1
export HISTTIMEFORMAT='%F %T '
# keep history up to date, across sessions, in realtime
# http://unix.stackexchange.com/a/48113
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=100000 # big big history (default is 500)
export HISTFILESIZE=$HISTSIZE # big big history
which shopt > /dev/null && shopt -s histappend # append to history, don't overwrite it
# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# ^ the only downside with this is [up] on the readline will go over all history not just this bash session.
export NVM_DIR="$HOME/.nvm"
# vim as default
export EDITOR="vim"
# Don’t clear the screen after quitting a manual page
export MANPAGER="less -X"
# Prefer US English and use UTF-8
export LC_ALL="en_US.UTF-8"
export LANG="en_US"
# Omit duplicates and commands that begin with a space from history.
export HISTCONTROL='ignoreboth';
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
#If you need to have ncurses first in your PATH run:
export NCURSES="/usr/local/opt/ncurses/bin"
#For compilers to find ncurses you may need to set:
#export LDFLAGS="-L/usr/local/opt/ncurses/lib"
#export CPPFLAGS="-I/usr/local/opt/ncurses/include"
#For pkg-config to find ncurses you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig"
# Setting PATH for Python 3.5
#export PYTHON="/Library/Frameworks/Python.framework/Versions/3.5/bin"
# export PYTHON="$(pyenv prefix)/bin"
export PYTHON="/usr/local/Cellar/[email protected]/3.8.1/Frameworks/Python.framework/Versions/3.8/"
export JAVA_HOME="$(/usr/libexec/java_home)"
# export JAVA="$JAVA_HOME/bin"
export M2_HOME="/devTools/apache-maven-3.3.3"
export M2="$M2_HOME/bin"
export MYSQL_HOME="/usr/local/opt/[email protected]/bin"
export PLAY_HOME="~/projects/play1"
export JENV_HOME="~/.jenv"
export JENV="$JENV_HOME/bin"
export PATH="$JENV:$JAVA_HOME/bin:$M2:$PYTHON:$APPENGINE_SDK:$PLAY_HOME:$MYSQL_HOME:$NCURSES:$PATH"
export GNU_BIN="/usr/local/opt/inetutils/libexec/gnubin"
export BASH_PROMPT_GIT_VERBOSE=true
export MAVEN_COLOR=true
# # The orginal version is saved in .bash_profile.pysave
# PATH=":${PATH}"
# export PATH
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
# export JAVA_6_HOME=$(/usr/libexec/java_home -v1.6)
export JAVA_7_HOME=$(/usr/libexec/java_home -v1.7)
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
# alias java6='export JAVA_HOME=$JAVA_6_HOME'
alias java7='export JAVA_HOME=$JAVA_7_HOME'
alias java8='export JAVA_HOME=$JAVA_8_HOME'
#default java7
export JAVA_HOME=$JAVA_8_HOME
#export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
export JAVA=$JAVA_HOME/bin
export DOTFILE_BIN="$HOME/bin"
export M2_HOME=/opt/local/share/java/maven3
export M2=$M2_HOME/bin
export APP_ENGINE=/Users/kkrcentralit/common/appengine-java-sdk-1.9.42/bin
export J_ENV=/Users/kkrcentralit/.jenv/shims
export PY_ENV=$(pyenv root)/shims
export PATH=$PATH:/usr/local/sbin:$PY_ENV:$M2:$JAVA:$APP_ENGINE:$J_ENV:$GNU_BIN:$DOTFILE_BIN
export JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
export NVM_DIR=~/.nvm
# export JAVA_HOME="/usr/libexec/java_home"
# export PATH=$PATH:$APPENGINE_SDK
# here's LS_COLORS
# github.com/trapd00r/LS_COLORS
command -v gdircolors >/dev/null 2>&1 || alias gdircolors="dircolors"
eval "$(gdircolors -b ~/.dircolors)"
eval "$(jenv init -)"