First Commit

This commit is contained in:
Robert R Evans
2010-10-02 11:55:34 -07:00
commit 9c7cd9aa00
25 changed files with 2344 additions and 0 deletions

9
plugins/base.bash Normal file
View File

@@ -0,0 +1,9 @@
# Desktop Programs
alias fireworks="open -a '/Applications/Adobe Fireworks CS3/Adobe Fireworks CS3.app'"
alias photoshop="open -a '/Applications/Adobe Photoshop CS3/Adobe Photoshop.app'"
alias preview="open -a '/Applications/Preview.app'"
alias xcode="open -a '/Developer/Applications/Xcode.app'"
alias filemerge="open -a '/Developer/Applications/Utilities/FileMerge.app'"
alias safari="open -a safari"
alias firefox="open -a firefox"
alias dashcode="open -a dashcode"

14
plugins/git.bash Normal file
View File

@@ -0,0 +1,14 @@
# Aliases
alias g='git'
alias gst='git status'
alias gl='git pull'
alias gup='git fetch && git rebase'
alias gp='git push'
alias gd='git diff | mate'
alias gdv='git diff -w "$@" | vim -R -'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gcount='git shortlog -sn'
alias gcp='git cherry-pick'

11
plugins/osx.bash Normal file
View File

@@ -0,0 +1,11 @@
function tab() {
osascript 2>/dev/null <<EOF
tell application "System Events"
tell process "Terminal" to keystroke "t" using command down
end
tell application "Terminal"
activate
do script with command "cd \"$PWD\"; $*" in window 1
end tell
EOF
}

21
plugins/rails.bash Normal file
View File

@@ -0,0 +1,21 @@
#
# These is some Alias' for Rails
#
alias ss='script/server'
alias sc='script/console'
alias restart_app='touch tmp/restart.txt'
# Rails Commands
alias r='rails'
alias rg='rails g'
alias rs='rails s'
alias rc='rails c'
alias rn='rails new'
alias rd='rails dbconsole'
alias rp='rails plugin'
alias ra='rails application'
alias rd='rails destroy'
alias devlog='tail -f log/development.log'

3
plugins/ruby.bash Normal file
View File

@@ -0,0 +1,3 @@
function remove_gem {
gem list | grep $1 | awk '{ print $1; }' | xargs sudo gem uninstall
}

15
plugins/rvm.bash Normal file
View File

@@ -0,0 +1,15 @@
switch () {
rvm $1
local v=$(rvm_version)
rvm wrapper $1 textmate
echo "Switch to Ruby version: "$v
}
rvm_default () {
rvm --default $1
rvm wrapper $1 textmate
}
function rvm_version () {
ruby --version
}

7
plugins/subversion.bash Normal file
View File

@@ -0,0 +1,7 @@
rm_svn(){
find $1 -name .svn -print0 | xargs -0 rm -rf
}
svn_add(){
svn status | grep '^\?' | sed -e 's/? *//' | sed -e 's/ /\ /g' | xargs svn add
}

4
plugins/textmate.bash Normal file
View File

@@ -0,0 +1,4 @@
# Textmate
alias e='mate . &'
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
alias em="emacs"

2
plugins/vim.bash Normal file
View File

@@ -0,0 +1,2 @@
# VIM
alias v='mvim --remote-silent'