Skip to content

Instantly share code, notes, and snippets.

@fsvehla
Created January 14, 2009 12:43
Show Gist options
  • Save fsvehla/46880 to your computer and use it in GitHub Desktop.
Save fsvehla/46880 to your computer and use it in GitHub Desktop.
source .paths # Sets up $PATH
export EDITOR="vim"
export GIT_EDITOR=${EDITOR}
export MANPATH="$PATH:/usr/share/man:/opt/local/share/man"
# No reason to export shell variables to each application.
PS1="[\u@\h \w \$] "
export EDITOR="mate --wait --line 1 --change-dir"
export GIT_EDITOR=$EDITOR
#== Bash history
export HISTCONTROL=erasedups
export HISTSIZE=30000
shopt -s histappend
# Prefer apple's openssh over macport's
alias ssh="/usr/bin/ssh"
# Dev
alias sc="script/console"
alias ss="script/server"
alias jsc="jruby script/console"
alias jrubys="jruby --server -J-Xms512m -J-Xmx512M"
# Misc aliases
alias ls="ls -lhaps"
alias bzip2="pbzip2"
# JRuby / Ruby EE
JAVA_1_6_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home"
export JAVA_HOME="${JAVA_1_6_HOME}"
export ANT_HOME="/Developer/Java/ant/"
export JRUBY_HOME="/Users/Ferdinand/bin/jruby/current"
export PATH=$PATH:${JRUBY_HOME}/bin
export RUBY_EE_HOME="/Users/Ferdinand/bin/ruby-ee"
export RUBY_EE_BIN="${RUBY_EE_HOME}/bin"
export PATH=${RUBY_EE_BIN}:$PATH
export RUBY=${RUBY_EE_BIN}/ruby
export CAP_GATEWAY='Ferdinand@localhost'
# Git aliases
alias gs="git status"
alias gd="git diff"
alias gdc="git diff --cached"
alias gdm="git diff | mate"
alias gdcm="git diff --cached | mate"
alias gpl="git pull"
alias gps="git push"
alias gc="git-commit"
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment