Skip to content

Instantly share code, notes, and snippets.

@spllr
Created January 2, 2011 10:24
Show Gist options
  • Save spllr/762442 to your computer and use it in GitHub Desktop.
Save spllr/762442 to your computer and use it in GitHub Desktop.
Bash stuff
# macport
if [ -d /opt/local/etc/macports ]; then
PATH=/opt/local/etc/macports:"${PATH}"
fi
if [ -d /opt/local/bin/ ]; then
PATH=/opt/local/bin/:"${PATH}"
fi
if [ -d ~/bin/ ]; then
PATH=~/bin/:"${PATH}"
fi
# bash-completion
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
if [ -f /opt/local/var/postgresql83/bin ]; then
PATH=/opt/local/var/postgresql83/bin:"${PATH}"
fi
# rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
# sjaak.org
export MAVEN_OPTS='-Xmx512M -XX:MaxPermSize=512m'
export LANG=en_US.UTF-8
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export LSCOLORS=DxGxcxdxCxegedabagacad
export CLICOLOR=1
# export EDITOR='mate -w'
# export VISUAL='mate -w'
# export EDITOR=/opt/local/bin/vim
# export VISUAL=/opt/local/bin/vim
export EDITOR=mvim
export VISUAL=mvim
# export PS1='[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m] $ '
# export PS2='[33[01;33m]more>[33[00m] '
export HISTCONTROL=ignoredups
export HISTFILESIZE=10000000
bind "set show-all-if-ambiguous On"
bind "set completion-ignore-case on"
bind "set bell-style none"
function p {
awk ' { print $'$1' } '
}
function p1 {
p 1
}
function p2 {
p 2
}
alias esed='sed -E'
export PAGER='less -S'
export AUTOFEATURE=trueexport EDITOR='mate -w'
alias cpwd='pwd | pbcopy'
alias r='rails'
rvm_archflags="-arch x86_64"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment