Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
130 lines (106 sloc) 3.37 KB
# -*- mode: sh; -*-
#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/ant/bin:${PATH}
PATH=${HOME}/opt/maven/bin:${PATH}
PATH=${HOME}/opt/nexus/bin:${PATH}
PATH=${HOME}/.cabal/bin:${PATH}
PATH=${HOME}/.rbenv/bin:${PATH}
PATH=/Applications/SWI-Prolog.app/Contents/MacOS:${PATH}
PATH=/Applications/Racket\ v6.2/bin/:${PATH}
PATH=${HOME}/perl5/bin:${PATH}
export PATH=${HOME}/bin:${PATH}
export EDITOR=emacsclient
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 LC_ALL=ru_RU.UTF-8
export LANG=ru_RU.UTF-8
# end
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
function kill! {
pgrep $@ | xargs kill -9
}
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ec="emacsclient -n -a vim"
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.5-complete.jar"
alias grun="java -cp ~/bin/opt/antlr-4.5-complete.jar org.antlr.v4.runtime.misc.TestRig"
alias unix2dos="sed -e 's/$/\r/'"
alias dos2unix="sed -e 's/\r$//'"
# 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
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
if which npm > /dev/null; then . <(npm completion); fi
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
manp()
{
man -t "${1}" | open -f -a Skim
}
. ~/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
Jump to Line
Something went wrong with that request. Please try again.