Created
February 28, 2012 18:45
-
-
Save knewter/1934259 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
export HISTCONTROL=ignoredups | |
export EDITOR=vim | |
# Amazon's Web Services | |
export EC2_HOME=~/software/ec2 | |
export PATH=$PATH:~/bin:$EC2_HOME/bin:~/software/code_swarm/bin:/home/jadams/.gem/ruby/1.8/bin:/home/jadams/software/doom3.gpl/neo | |
export EC2_PRIVATE_KEY=~/.ec2/pk-UDBPLIRD7EV2LA6R6WX3LC7N7IR2RLU4.pem | |
export EC2_CERT=~/.ec2/cert-UDBPLIRD7EV2LA6R6WX3LC7N7IR2RLU4.pem | |
# Format cucumber nicely | |
export CUCUMBER_FORMAT=pretty | |
# Make cucumber not spam my running firefox session | |
# Nevermind no workie | |
#LAUNCHY_BROWSER=`which google-chrome` | |
#BROWSER=`which google-chrome` | |
# make autotest run cukes if they're there | |
export AUTOFEATURE=true | |
# Titanium Developer | |
export TIPATH=~/.titanium | |
# Java | |
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk | |
## check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. | |
shopt -s checkwinsize | |
# make less more friendly for non-text input files, see lesspipe(1) | |
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" | |
# screw less/more, just use most | |
[ -x /usr/bin/most ] && export PAGER=most | |
[ -x /usr/bin/most ] && alias more='most' && alias less='most' | |
# set variable identifying the chroot you work in (used in the prompt below) | |
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |
debian_chroot=$(cat /etc/debian_chroot) | |
fi | |
# set a fancy prompt (non-color, unless we know we "want" color) | |
case "$TERM" in | |
xterm-color) | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
;; | |
*) | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
;; | |
esac | |
# If this is an xterm set the title to user@host:dir | |
case "$TERM" in | |
xterm*|rxvt*) | |
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' | |
;; | |
*) | |
;; | |
esac | |
# enable color support of ls and also add handy aliases | |
if [ "$TERM" != "dumb" ]; then | |
eval "`dircolors -b`" | |
alias ls='ls --color=auto' | |
alias dir='ls --color=auto --format=vertical' | |
alias vdir='ls --color=auto --format=long' | |
fi | |
# some more ls aliases | |
alias ll='ls -l' | |
alias la='ls -A' | |
alias l='ls -CF' | |
# 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 [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi | |
if [ -f ~/.bash_files/aliases ]; then | |
. ~/.bash_files/aliases | |
fi | |
if [ -f ~/.bash_files/prompts/elite ]; then | |
. ~/.bash_files/prompts/elite | |
elite | |
fi | |
#export PS1='C:${PWD//\//\\\}>' | |
# Map capslock to exc | |
xmodmap ~/.xmodmap-esc | |
export RUBYOPT="rubygems" | |
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm | |
[[ -s ./.rvmrc ]] && source ./.rvmrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment