-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
57 lines (44 loc) · 1.25 KB
/
bash_profile
File metadata and controls
57 lines (44 loc) · 1.25 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
#to install, add to ~/.bash_profile:
#todo: make an install.sh
#if [ -f $HOME/bashdefaults/bash_profile ]; then
# . $HOME/bashdefaults/bash_profile
# fi
export VISUAL=vi
export EDITOR=vi
export HISTSIZE=50000
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
#aliases
alias la='ls -lA'
alias l='ls -l'
alias grep='grep --color=auto'
#vi style cli
set -o vi
# Beanshell
function beanshell {
java bsh.Interpreter
}
SSH_COMPLETE=( $(cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
uniq \
# | egrep -v [0123456789]
) )
complete -o default -W "${SSH_COMPLETE[*]}" ssh
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
source ~/bashdefaults/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWCOLORHINTS=true
GIT_PS1_SHOWUPSTREAM="auto"
GIT_PS1_SHOWSTASHSTATE=true
PS1='\h:\W$(__git_ps1 " (%s)") \u$ '
MAVEN_OPTS="-Xmx768m -Xms768m -XX:MaxPermSize=256m -Dansi.color -Xdebug -Xrunjdwp:transport=dt_socket,address=1045,server=y,suspend=n"
export MAVEN_OPTS
export TMP=/tmp/
export JAVA_HOME=`/usr/libexec/java_home`
export JRE_HOME=`/usr/libexec/java_home`
function pomgrep {
find . -name pom.xml | xargs grep $@
}