Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

158 lines (133 sloc) 4.084 kb
alias myip="ifconfig | grep 'inet '"
alias mruby='/usr/bin/ruby'
alias rby="~/.multiruby/install/v1_9_1_0/bin/ruby"
alias snc="~/.multiruby/install/v1_9_1_0/bin/ruby -S spec"
alias cuke19="~/.multiruby/install/v1_9_1_0/bin/cucumber"
alias gi="sudo gem install"
alias pi="sudo port install"
alias up="svn up"
alias co="svn co"
alias rv="svn revert"
alias td="svn diff | mate"
alias sd="svn diff | cdiff"
alias aa='svn status | grep "^\?" | awk "{print \$2}" | xargs svn add'
function st() {
git branch &>/dev/null
if [ $? -eq 0 ]; then
git status;
else
svn status;
fi
}
function ci() {
git branch &>/dev/null
if [ $? -eq 0 ]; then
git commit -m;
else
svn ci -m;
fi
}
alias gis='git status'
alias gid='git diff --cached'
alias gic='git commit -m'
alias gia='git add'
alias gir='git checkout cuke && git pull origin cuke && git checkout cuke-working && git rebase cuke && git checkout cuke && git merge cuke-working'
alias giw='git checkout cuke && git push origin cuke && git checkout cuke-working'
alias go="cd ~/Code/clear/exchange"
alias mys="mysql -u root exchange_development"
alias resetdev="rk db:reset_exchange"
alias resettest="RAILS_ENV=test rk db:reset_exchange"
alias rmi='rake db:migrate'
alias rtc='rake tmp:clear'
alias rlf='rake db:fixtures:load'
alias v='~/bin/mvim'
alias trunk_url='echo svn+ssh://xshay@svn.redbubble.com/home/svn/redbubble/trunk'
alias t='script/specrb'
alias staginate="ssh xshay@omega.redbubble.com 'cd trunk && svn up && cap -f config/cap/staging.rb deploy_with_migrations'"
function rtu() {
if [ "$#" = 2 ]; then
ruby test/unit/$1_test.rb -n $2;
else
if [ "$#" = 1 ]; then
ruby test/unit/$1_test.rb;
else
rake test:units;
fi
fi
}
function rtf() {
if [ "$#" = 2 ]; then
ruby test/functional/$1_controller_test.rb -n $2;
else
if [ "$#" = 1 ]; then
ruby test/functional/$1_controller_test.rb;
else
rake test:functionals;
fi
fi
}
#function rtu() {
# if [ "$#" = 2 ]; then
# ruby_fork_client -r test/unit/$1_test.rb -- -n $2;
# else
# if [ "$#" = 1 ]; then
# ruby_fork_client -r test/unit/$1_test.rb;
# else
# rake test:units;
# fi
# fi
#}
#
#function rtf() {
# if [ "$#" = 2 ]; then
# ruby_fork_client -r test/functional/$1_controller_test.rb -- -n $2;
# else
# if [ "$#" = 1 ]; then
# ruby_fork_client -r test/functional/$1_controller_test.rb;
# else
# rake test:functionals;
# fi
# fi
#}
alias rta="rake test && echo Full test complete | growlnotify"
alias rfs="RAILS_ENV='test' ruby_fork -r rubygems -e 'require \"config/environment.rb\"'"
alias s="./script/server"
alias c="./script/console"
alias sbl="source ~/.bash_login"
alias searchfu="find . -path '*/.svn' -prune -o -path '*/vendor' -o \( -size -100000c -type f \) -print0 | xargs -0 grep -ne"
function lc
{
history | tail -n 2 | head -n 1 | cut -c 8-
};
function growl()
{
echo -e $'\e]9;'${1}'\007' ; return ;
}
export EXCLUDE_SLOW_TESTS=1
export PATH="~/bin:/opt/rabbitmq_server-1.6.0/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/usr/local/bin:/Applications/LilyPond.app/Contents/Resources/bin:/Users/xavier/Code/hadoop-0.20.1/bin:$PATH"
export EDITOR="vim"
export SVN_SSH="ssh -l xshay"
export PS1="$ "
export PS1='\[\e]2;[bash] \h:]$PWD\[\a\]\[\e]1;\]$(history | tail -n 1 | cut -c 8- )\[\a\]\w> '
export PS1='\w> '
export PS1='\w $(git branch &>/dev/null; if [ $? -eq 0 ]; then echo "($(git branch | grep '^*' |sed s/\*\ //))"; fi)\$ '
export LC_ALL=en_AU.UTF-8
function l() {
export PS1="\[\e]2;[bash] \h:]$PWD\[\a\]\[\e]1;\]$1\[\a\]\w> "
}
test -r /sw/bin/init.sh && . /sw/bin/init.sh
export CODE="$HOME/Code"
p() {
cd "$CODE/$1"
}
_p() {
COMPREPLY=( $(compgen -W "$(ls $CODE | sort | uniq | grep -vE \"^_\")" -- ${COMP_WORDS[COMP_CWORD]} ) )
}
complete -F _p p
complete -C ~/bin/rake-complete.rb -o default rake
# -- start rip config -- #
RIPDIR=/Users/xavier/.rip
RUBYLIB="$RUBYLIB:$RIPDIR/active/lib"
PATH="$PATH:$RIPDIR/active/bin"
export RIPDIR RUBYLIB PATH
# -- end rip config -- #
Jump to Line
Something went wrong with that request. Please try again.