-
Notifications
You must be signed in to change notification settings - Fork 0
/
env-bash.sh
78 lines (65 loc) · 1.87 KB
/
env-bash.sh
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
HISTSIZE=2000
export HISTSIZE
#-----------------------------------------
# Highlight GREP matches
#-----------------------------------------
GREP_COLOR='1;32'
export GREP_COLOR
GREP_OPTIONS=--color=auto
export GREP_OPTIONS
#-----------------------------------------
# Setup LS colors
#-----------------------------------------
export LS_OPTIONS='--color=auto'
export CLICOLOR='Yes'
#export LSCOLORS='Bxgxfxfxcxdxdxhbadbxbx'
#export LSCOLORS="exfxcxdxcxegedabagacad"
#-------------------------------------------
# Ensure we are using current unix commands
#-------------------------------------------
export COMMAND_MODE=unix2003
#-------------------------------------------
# If need old / legacy support uncomment
#-------------------------------------------
#export COMMAND_MODE=legacy
#-----------------------------------------
# Editor settings
#-----------------------------------------
set -o vi
export VISUAL=vi
export EDITOR=vi
#-----------------------------------------
# Set prompt
#-----------------------------------------
export USER=`whoami`;
export HOST=`hostname -s`;
export PS1='$USER@$HOST[$PWD]==> '
# MAC
JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
export JAVA_HOME
JDK_HOME=$JAVA_HOME
export JDK_HOME
JRE_HOME=$JAVA_HOME
export JRE_HOME
IDEA_JDK=$JAVA_HOME
export IDEA_JDK
#-----------------------------------------
# Put local bin directory in path
#-----------------------------------------
PATH=~/bin:$PATH
export PATH
#-----------------------------------------
# Add WireShark to path
#-----------------------------------------
PATH=$PATH:~/apps/wireshark
export PATH
#-----------------------------------------
# Load rbenv ruby version manager
#-----------------------------------------
function load_rbenv(){
eval "$(rbenv init -)"
}
#-----------------------------------------
# To help GPG handle passphrases
#-----------------------------------------
export GPG_TTY=$(tty)