Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

112 lines (91 sloc) 2.963 kB
# -*- mode: sh; -*-
# set environment for MAC OS
export PYTHONPATH=/usr/local/lib/python2.7/site-packages/:$PYTHONPATH
#export JAVACMD=drip
export JAVA_HOME=$(/usr/libexec/java_home)
export SCALA_HOME=${HOME}/opt/scala
export EC2_HOME=/usr/local/ec2/ec2-api-tools-1.7.0.2
PATH=$EC2_HOME/bin:${PATH}
PATH=/usr/local/bin:${PATH}
PATH=${HOME}/opt/scala/bin:${PATH}
PATH=${HOME}/opt/maven/bin:${PATH}
PATH=${HOME}/opt/ant/bin:${PATH}
PATH=${HOME}/opt/nexus/bin:${PATH}
PATH=${HOME}/Library/Haskell/bin:${PATH}
PATH=${HOME}/.rbenv/bin:${PATH}
export PATH=${HOME}/bin:${PATH}
export MANPATH=${HOME}/share/man:${MANPATH}
export MANWIDTH=80
export LESS="-R -i"
export RI="-f ansi"
export SSH_ENV="${HOME}/.ssh/environment"
#export CC="/usr/local/bin/gcc-4.8"
#export CXX="/usr/local/bin/g++-4.8"
export CFLAGS="-march=native -mtune=native -O3 -pipe"
export CXXFLAGS=${CFLAGS}
export MAKEFLAGS="-j5"
export GREP_OPTIONS="--color=auto"
export GREP_COLOR="1\;32"
export LC_ALL=ru_RU.UTF-8
export LANG=ru_RU.UTF-8
# end
eval "$(rbenv init -)"
PS1=" λ \[\e[01;34m\]\W\[\e[00m\] \[\e[01;32m\]→ \[\e[00m\] "
HISTCONTROL=erasedups:ignorespace
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
shopt -s checkwinsize
# not working under OS X
#shopt -s globstar
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias vi="vim"
alias sudo='sudo -E'
alias ls="ls -hFG"
alias l="ls"
alias ll="ls -l"
alias la="ls -A"
alias wget="wget -c -t 0 --timeout 5"
alias ss='python -m SimpleHTTPServer' # simple server (serves current dir on port 8000)
alias df="df -h"
alias du="du -h"
alias antlr4="java -jar ~/bin/antlr-4.1-complete.jar"
alias grun="java -cp ~/bin/opt/antlr-4.1-complete.jar org.antlr.v4.runtime.misc.TestRig"
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
function start_agent {
echo "Initializing new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add;
}
# Source SSH settings, if applicable
if [ -f "${SSH_ENV}" ]; then
. "${SSH_ENV}" > /dev/null
#ps ${SSH_AGENT_PID} doesn't work under cywgin
ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
start_agent;
}
else
start_agent;
fi
if [ -f ~/.aws/secret ]; then
# Contains 2 exported variables: AWS_ACCESS_KEY and AWS_SECRET_KEY
. ~/.aws/secret;
fi
. <(npm completion)
complete -C aws_completer aws
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
Jump to Line
Something went wrong with that request. Please try again.