Merge remote-tracking branch 'upstream/master'

pull/54/head
Ryan 2011-06-06 16:41:20 -10:00
commit f9b31e9f23
5 changed files with 93 additions and 36 deletions

View File

@ -17,9 +17,10 @@ fi
alias c='clear' alias c='clear'
alias k='clear' alias k='clear'
alias cls='clear'
alias edit="$EDITOR" alias edit="$EDITOR"
alias page="$PAGER" alias pager="$PAGER"
alias q="exit" alias q="exit"
@ -53,7 +54,7 @@ function aliases-help() {
echo " la = ls -AF" echo " la = ls -AF"
echo " ll = ls -al" echo " ll = ls -al"
echo " l = ls -a" echo " l = ls -a"
echo " c/k = clear" echo " c/k/cls = clear"
echo " .. = cd .." echo " .. = cd .."
echo " ... = cd ../.." echo " ... = cd ../.."
echo " - = cd -" echo " - = cd -"
@ -65,5 +66,8 @@ function aliases-help() {
echo " piano = pianobar" echo " piano = pianobar"
echo " q = exit" echo " q = exit"
echo " irc = $IRC_CLIENT" echo " irc = $IRC_CLIENT"
echo " md = mkdir -p"
echo " rd = rmdir"
echo " rb = ruby"
echo echo
} }

View File

@ -0,0 +1,24 @@
# Some aliases for Homebrew
alias bup="brew update && brew upgrade"
alias bout="brew outdated"
alias bin="brew install"
alias brm="brew uninstall"
alias bls="brew list"
alias bsr="brew search"
alias binf="brew info"
alias bdr="brew doctor"
function brew-help() {
echo "Homebrew Alias Usage"
echo
echo "bup = brew update && brew upgrade"
echo "bout = brew outdated"
echo "bin = brew install"
echo "brm = brew uninstall"
echo "bls = brew list"
echo "bsr = brew search"
echo "binf = brew info"
echo "bdr = brew doctor"
echo
}

View File

@ -73,6 +73,7 @@ function bash-it() {
echo " rails-help This will list out all the aliases you can use with rails." echo " rails-help This will list out all the aliases you can use with rails."
echo " git-help This will list out all the aliases you can use with git." echo " git-help This will list out all the aliases you can use with git."
echo " todo-help This will list out all the aliases you can use with todo.txt-cli" echo " todo-help This will list out all the aliases you can use with todo.txt-cli"
echo " brew-help This will list out all the aliases you can use with Homebrew"
echo " aliases-help Generic list of aliases." echo " aliases-help Generic list of aliases."
echo " plugins-help This will list out all the plugins and functions you can use with bash-it" echo " plugins-help This will list out all the plugins and functions you can use with bash-it"
echo echo

View File

@ -3,15 +3,30 @@
# The install directory is hard-coded. TOOD: allow the directory to be specified on the command line. # The install directory is hard-coded. TOOD: allow the directory to be specified on the command line.
# #
[[ -z "$JQUERY_VERSION_NUMBER" ]] && JQUERY_VERSION_NUMBER="1.6.1"
[[ -z "$JQUERY_UI_VERSION_NUMBER" ]] && JQUERY_UI_VERSION_NUMBER="1.8.13"
function rails_jquery { function rails_jquery {
curl -o public/javascripts/rails.js http://github.com/rails/jquery-ujs/raw/master/src/rails.js curl -o public/javascripts/rails.js http://github.com/rails/jquery-ujs/raw/master/src/rails.js
} }
function jquery_install { function jquery_install {
curl -o public/javascripts/jquery.js http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js if [ -z "$1" ]
then
version=$JQUERY_VERSION_NUMBER
else
version="$1"
fi
curl -o public/javascripts/jquery.js "http://ajax.googleapis.com/ajax/libs/jquery/$version/jquery.min.js"
} }
function jquery_ui_install { function jquery_ui_install {
curl -o public/javascripts/jquery_ui.js http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js if [ -z "$1" ]
then
version=$JQUERY_UI_VERSION_NUMBER
else
version="$1"
fi
curl -o public/javascripts/jquery_ui.js "http://ajax.googleapis.com/ajax/libs/jqueryui/$version/jquery-ui.min.js"
} }

View File

@ -1,16 +1,29 @@
#!/bin/bash #!/bin/bash
switch () {
# Load RVM, if you are using it
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
# Check to make sure that RVM is actually loaded before adding
# the customizations to it.
if [ "$rvm_path" ]
then
# Load the auto-completion script if RVM was loaded.
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
switch () {
rvm $1 rvm $1
local v=$(rvm_version) local v=$(rvm_version)
rvm wrapper $1 textmate rvm wrapper $1 textmate
echo "Switch to Ruby version: "$v echo "Switch to Ruby version: "$v
} }
rvm_default () { rvm_default () {
rvm --default $1 rvm --default $1
rvm wrapper $1 textmate rvm wrapper $1 textmate
} }
function rvm_version () { function rvm_version () {
ruby --version ruby --version
} }
fi