Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
125 lines (105 sloc) 3.77 KB
# .bash_profile
# get aliases and functions
# --------------------------------------------------------------------------------
if [[ -f ~/.bashrc ]]; then
. ~/.bashrc
fi
# ant settings
# --------------------------------------------------------------------------------
if [[ -f ~/.antrc ]]; then
. ~/.antrc
fi
# autojump
# https://github.com/joelthelion/autojump
# --------------------------------------------------------------------------------
if [ -f /opt/local/etc/profile.d/autojump.sh ]; then
. /opt/local/etc/profile.d/autojump.sh
fi
if [ -f /etc/profile.d/autojump.sh ]; then
. /etc/profile.d/autojump.sh
fi
# paths
# --------------------------------------------------------------------------------
export JUNIT_HOME=/Developer-3.2.6/junit4.8.2
export CLASSPATH=$JUNIT_HOME/junit-4.8.2.jar:$JUNIT_HOME
export PATH=$HOME/.local/bin:$HOME/.local/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin
export MANPATH=$HOME/.local/share/man:/usr/local/share/man
PATH="$PATH:$JUNIT_HOME"
PATH="$PATH:/usr/local/mysql/bin:/opt/local/bin"
PATH="$PATH:/Applications/SenchaSDKTools-1.1"
PATH="$PATH:/Applications/SenchaSDKTools-1.1/command"
PATH="$PATH:/Applications/SenchaSDKTools-1.1/appbuilder"
PATH="$PATH:/Applications/SenchaSDKTools-1.1/jsbuilder"
PATH="$PATH:$HOME/work/scripts"
PATH="$PATH:/opt/local/bin:/opt/local/sbin"
MANPATH=$MANPATH:/opt/local/share/man
INFOPATH=$INFOPATH:/opt/local/share/info
# stack size (64MB)
# --------------------------------------------------------------------------------
ulimit -s 64000
# bash completion
# --------------------------------------------------------------------------------
if [[ -f /opt/local/etc/bash_completion ]]; then
. /opt/local/etc/bash_completion
elif [[ -f ~/.bash_completion ]]; then
source ~/.bash_completion
fi
# git tab completion
# --------------------------------------------------------------------------------
if [[ -f ~/git-completion.bash ]]; then
source ~/git-completion.bash
fi
# git colors fix
export LESS="-erX"
# load RVM
#PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
if [ -d "$HOME/.rvm" ]; then
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
rvm --default use 1.9.2
fi
# history
# ------------------------------------------------------------------------------
export HISTCONTROL="erasedupes"
export HISTFILESIZE=409600
export HISTIGNORE='history:&:ls:ll:la:[bf]g:h:exit:clear'
export HISTSIZE=100000
# grep colors
# ------------------------------------------------------------------------------
[[ "$TERM" != 'dumb' ]] && {
export GREP_OPTIONS="--color=auto"
export GREP_COLOR="37;45"
}
# editor
# --------------------------------------------------------------------------------
if [[ $platform == 'linux' ]]; then
export EDITOR='gvim -f'
elif [[ $platform == 'mac' ]]; then
export EDITOR='/usr/local/bin/vim'
fi
# termcap colors
# ------------------------------------------------------------------------------
[[ "$TERM" != 'dumb' ]] && {
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;31m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[00;47;30m' # begin standout-mode
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[01;32m' # begin underline
}
bind "set completion-ignore-case on"
bind "set bell-style none"
bind "set show-all-if-ambiguous on"
# {{{
# Node Completion - Auto-generated, do not touch.
#shopt -s progcomp
#for f in $(command ls ~/.node-completion); do
#f="$HOME/.node-completion/$f"
#test -f "$f" && . "$f"
#done
# }}}
echo -e "${COLOR_RED}kernel info: " `uname -smr`
echo -e "${COLOR_BROWN}`bash --version`"
echo -ne "${COLOR_GREEN}uptime: "; uptime
echo -ne "${COLOR_GREEN}server time is: "; date
echo -ne "${COLOR_NC}"
Something went wrong with that request. Please try again.