Merge pull request #51 from tswicegood/javascript-update

Allow specifying jQuery/jQuery UI version number and update defaults
diff --git a/aliases/general.aliases.bash b/aliases/general.aliases.bash
index d91fbbb..79bd7aa 100644
--- a/aliases/general.aliases.bash
+++ b/aliases/general.aliases.bash
@@ -17,9 +17,10 @@
 
 alias c='clear'
 alias k='clear'
+alias cls='clear'
 
 alias edit="$EDITOR"
-alias page="$PAGER"
+alias pager="$PAGER"
 
 alias q="exit"
 
@@ -48,22 +49,25 @@
 function aliases-help() {
   echo "Generic Alias Usage"
   echo
-  echo "  sl     = ls"
-  echo "  ls     = ls -G"
-  echo "  la     = ls -AF"
-  echo "  ll     = ls -al"
-  echo "  l      = ls -a"
-  echo "  c/k    = clear"
-  echo "  ..     = cd .."
-  echo "  ...    = cd ../.."
-  echo "  -      = cd -"
-  echo "  h      = history"
-  echo "  md     = mkdir -p"
-  echo "  rd     = rmdir"
-  echo "  editor = $EDITOR"
-  echo "  pager  = $PAGER"
-  echo "  piano  = pianobar"
-  echo "  q      = exit"
-  echo "  irc    = $IRC_CLIENT"
-  echo 
+  echo "  sl      = ls"
+  echo "  ls      = ls -G"
+  echo "  la      = ls -AF"
+  echo "  ll      = ls -al"
+  echo "  l       = ls -a"
+  echo "  c/k/cls = clear"
+  echo "  ..      = cd .."
+  echo "  ...     = cd ../.."
+  echo "  -       = cd -"
+  echo "  h       = history"
+  echo "  md      = mkdir -p"
+  echo "  rd      = rmdir"
+  echo "  editor  = $EDITOR"
+  echo "  pager   = $PAGER"
+  echo "  piano   = pianobar"
+  echo "  q       = exit"
+  echo "  irc     = $IRC_CLIENT"
+  echo "  md      = mkdir -p"
+  echo "  rd      = rmdir"
+  echo "  rb      = ruby"
+  echo
 }
diff --git a/aliases/homebrew.aliases.bash b/aliases/homebrew.aliases.bash
new file mode 100644
index 0000000..051081d
--- /dev/null
+++ b/aliases/homebrew.aliases.bash
@@ -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
+}
diff --git a/bash_it.sh b/bash_it.sh
index 4a9b30d..d63458a 100644
--- a/bash_it.sh
+++ b/bash_it.sh
@@ -73,6 +73,7 @@
   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 "  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 "  plugins-help                This will list out all the plugins and functions you can use with bash-it"
   echo
diff --git a/plugins/available/rvm.plugin.bash b/plugins/available/rvm.plugin.bash
index d3c81ed..e158a80 100644
--- a/plugins/available/rvm.plugin.bash
+++ b/plugins/available/rvm.plugin.bash
@@ -1,16 +1,29 @@
 #!/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
-}
+# Load RVM, if you are using it
+[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
 
-function rvm_version () {
-  ruby --version
-}
\ No newline at end of file
+# 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
+      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
+    }
+
+fi
diff --git a/themes/doubletime/doubletime.theme.bash b/themes/doubletime/doubletime.theme.bash
index c5a8a42..91844f0 100644
--- a/themes/doubletime/doubletime.theme.bash
+++ b/themes/doubletime/doubletime.theme.bash
@@ -37,8 +37,14 @@
   history -a
   history -c
   history -r
+  if [[ -z "$THEME_PROMPT_CLOCK_FORMAT" ]]
+  then
+      clock="\t"
+  else
+      clock=$THEME_PROMPT_CLOCK_FORMAT
+  fi
   PS1="
-\t $(scm_char) [\[$THEME_PROMPT_HOST_COLOR\]\u@${THEME_PROMPT_HOST}\[$reset_color\]] $(virtualenv_prompt)\w
+$clock $(scm_char) [\[$THEME_PROMPT_HOST_COLOR\]\u@${THEME_PROMPT_HOST}\[$reset_color\]] $(virtualenv_prompt)\w
 $(doubletime_scm_prompt)\[$reset_color\] $ "
   PS2='> '
   PS4='+ '