forked from mvolkmann/MyUnixEnv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
162 lines (124 loc) · 4.62 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#!/bin/bash
#echo running .bash_profile
unset COLUMNS # to prevent ps from truncating lines
set noclobber
# Files to ignore in filename completion.
export FIGNORE='.o:.swp'
# Look for libraries in standard places.
export LD_LIBRARY_PATH=.:$HOME/lib:/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH
#-------------------------------------------------------------------------
# Commonly used directory prefixes.
export DOCUMENTS_DIR=$HOME/Documents
export DROPBOX_DIR=$HOME/Dropbox
export EP_DIR=$HOME/gm-earnpower-client
export OCI_DIR=$DOCUMENTS_DIR/oci
export PROGRAMMING_DIR=$DOCUMENTS_DIR/programming
export DATABASES_DIR=$PROGRAMMING_DIR/databases
export LANGUAGES_DIR=$PROGRAMMING_DIR/languages
export CSS_DIR=$LANGUAGES_DIR/CSS
export HTML_DIR=$LANGUAGES_DIR/html
export JAVA_DIR=$LANGUAGES_DIR/java
export JAVASCRIPT_DIR=$LANGUAGES_DIR/javascript
export MARITZ_DIR=$OCI_DIR/clients/Maritz
#export MONGODB_DIR=$DATABASES_DIR/MongoDB
export RGA_DIR=$OCI_DIR/clients/RGA
export SETT_DIR=$OCI_DIR/SETT
export TRAINING_DIR=$DOCUMENTS_DIR/training
# Ant settings
export ANT_HOME=$JAVA_DIR/Ant/apache-ant-1.8.2
export PATH=$ANT_HOME/bin:$PATH
# AsciiDoc settings
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"
# coreutils settings
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
# Clojure settings
#export CLOJURE_HOME=$LANGUAGES_DIR/clojure/clojure-1.2.1
#export CLOJURE_HOME=/opt/clojure-1.5.1 # for RPi
#alias clj="java -cp $CLOJURE_HOME/clojure-1.5.1.jar clojure.main"
# Git settings
. ~/bin/git-completion.bash
#export PATH=$PATH:/usr/local/git/bin
export GITHUB_USER=mvolkmann
#export GITHUB_PASS=
# Go settings
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
# grep settings
# This setting may interfere with fink scripts!
#export GREP_OPTIONS="--color=ALWAYS"
# HTTP server to serve files in current directory
alias serve="python -m SimpleHTTPServer 8080"
# Java settings
export JAVA_HOME=$(/usr/libexec/java_home)
# JavaScript settings
export JS_CMD=node
export JS_DIR=$LANGUAGES_DIR/javascript
# Maven settings
#export MAVEN_HOME=$JAVA_DIR/maven/apache-maven-3.1.0
export MAVEN_HOME=$HOME/programming/tools/maven/apache-maven-3.3.9
export M2_HOME=$MAVEN_HOME
export PATH=$PATH:$MAVEN_HOME/bin
#export MAVEN_OPTS="-Xms1024m -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=2048m"
# Monsanto settings
export POSTGRES_DB=launchpad
export POSTGRES_USER=launchpad
export POSTGRES_PASSWORD=launchpad
export NODE_ENV=local
alias pgl='psql -d launchpad'
# MongoDB settings
#export PATH=$PATH:$MONGODB_DIR/mongodb-osx-x86_64-2.4.3/bin
# MySQL settings
export PATH=$PATH:/usr/local/mysql/bin
# Node.js settings
export NODE_PATH=.:/usr/local/lib/node_modules # Mocha needs this
export PATH=$PATH:$NODE_DIR/deps/v8/tools
function npm-do { (PATH=$(npm bin):$PATH; eval $@;) }
# React Native settings
export ANDROID_HOME=/usr/local/opt/android-sdk
export GRADLE_OPTS="-Dorg.gradle.daemon=true"
# Ruby settings
export RUBY_DIR=$LANGUAGES_DIR/Ruby
export RUBY_HOME=$HOME/.rbenv/versions/1.9.1-p430/bin
export PATH=$RUBY_HOME:$PATH
#export RUBY_HOME=/usr/local/lib/ruby
#export PATH=/usr/local/bin:$PATH
#export PATH=$PATH:/usr/local/Cellar/ruby/1.9.2-p290/bin
export RUBYOPT=-rubygems
# Tell less not to complain about ANSI escape codes, and run ri.
alias ri='RI="${RI} -f ansi" LESS="${LESS}-f-R" ri'
# Subversion settings
export SVN_PREFIX=svn+ssh://oci-svn/education/training/tracks
# Tomcat settings
#export TOMCAT_HOME=$JAVA_DIR/Tomcat/apache-tomcat-7.0.41
#export BASEDIR=$TOMCAT_HOME
#export CATALINA_HOME=$TOMCAT_HOME
# TypeScript settings
export PATH=$PATH:~/programming/typescript/TypeScript/bin
# TypeScript settings
export PATH=$PATH:$LANGUAGES_DIR/TypeScript/ts1.5/bin
# Vim settings
set -o vi # for vi-mode command-line editing
set editing-mode vi # for vi-mode command-line editing and all utilities that use readline
export EDITOR=vim
export VISUAL=vim
# VS Code - allows launch from terminal with "code"
export PATH=$PATH:/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin
# When running multiple bash shells, allow all to write to history
# without overwriting each other.
shopt -s histappend
# Don't retain duplicate commands in history.
export HISTCONTROL=ignoredups
# Show Git information in prompt.
# See https://github.com/matthewmccullough/MatthewsShellConfig
#source ~/.bash_gitprompt
export PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH
#export TERM=xterm-256color-italic
export TERM=xterm-256color
# Indicate that this file has been source
# so .bashrc knows whether it should source this.
export SOURCED_PROFILE=1
# Added for OCI NRG project
export HOST_IP="10.201.200.63"
export DOCKER_IP="172.21.0.1"
. ~/.bashrc