Help files. Added the rest of bash it
This commit is contained in:
19
plugins/base.plugin.bash
Normal file
19
plugins/base.plugin.bash
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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"
|
||||
|
||||
function plugin-help() {
|
||||
echo "Plugin Help Screen"
|
||||
echo
|
||||
rails-help
|
||||
echo
|
||||
git-help
|
||||
}
|
||||
1
plugins/emacs.plugin.bash
Normal file
1
plugins/emacs.plugin.bash
Normal file
@@ -0,0 +1 @@
|
||||
alias em="emacs"
|
||||
36
plugins/git.plugin.bash
Normal file
36
plugins/git.plugin.bash
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Aliases
|
||||
alias g='git'
|
||||
alias gst='git status'
|
||||
alias gs='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'
|
||||
|
||||
function git-help() {
|
||||
echo "Git Custom Aliases Usage"
|
||||
echo
|
||||
echo " g = git"
|
||||
echo " gst/gs = git status"
|
||||
echo " gl = git pull"
|
||||
echo " gup = git fetch && git rebase"
|
||||
echo " gp = git push"
|
||||
echo " gd = git diff | mate"
|
||||
echo " gdv = git diff -w \"$@\" | vim -R -"
|
||||
echo " gc = git commit -v"
|
||||
echo " gca = git commit -v -a"
|
||||
echo " gb = git branch"
|
||||
echo " gba = git branch -a"
|
||||
echo " gcount = git shortlog -sn"
|
||||
echo " gcp = git cherry-pick"
|
||||
echo
|
||||
}
|
||||
13
plugins/osx.plugin.bash
Normal file
13
plugins/osx.plugin.bash
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
}
|
||||
36
plugins/rails.plugin.bash
Normal file
36
plugins/rails.plugin.bash
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 ss='script/server'
|
||||
alias sc='script/console'
|
||||
alias restart_app='touch tmp/restart.txt'
|
||||
alias devlog='tail -f log/development.log'
|
||||
|
||||
|
||||
function rails-help() {
|
||||
echo "Rails Aliases Usage"
|
||||
echo
|
||||
echo " r = rails"
|
||||
echo " rg = rails generate"
|
||||
echo " rs/ss = rails server"
|
||||
echo " rc/sc = rails console"
|
||||
echo " rn = rails new"
|
||||
echo " rd = rails dbconsole"
|
||||
echo " rp = rails plugin"
|
||||
echo " ra = rails application"
|
||||
echo " rd = rails destroy"
|
||||
echo " restartapp = touch tmp/restart.txt"
|
||||
echo " devlog = tail -f log/development.log"
|
||||
echo
|
||||
}
|
||||
|
||||
4
plugins/ruby.plugin.bash
Normal file
4
plugins/ruby.plugin.bash
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
function remove_gem {
|
||||
gem list | grep $1 | awk '{ print $1; }' | xargs sudo gem uninstall
|
||||
}
|
||||
16
plugins/rvm.plugin.bash
Normal file
16
plugins/rvm.plugin.bash
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
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
|
||||
}
|
||||
8
plugins/subversion.plugin.bash
Normal file
8
plugins/subversion.plugin.bash
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
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
|
||||
}
|
||||
5
plugins/textmate.plugin.bash
Normal file
5
plugins/textmate.plugin.bash
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Textmate
|
||||
alias e='mate . &'
|
||||
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
|
||||
4
plugins/vim.plugin.bash
Normal file
4
plugins/vim.plugin.bash
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
alias v='mvim --remote-silent'
|
||||
|
||||
Reference in New Issue
Block a user