Skip to content

Commit

Permalink
rake completion in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain Hecker committed Feb 13, 2009
1 parent e592a61 commit c3789a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions dotfiles/bashrc
Expand Up @@ -13,6 +13,18 @@ done
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

# Rakefile completion
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}

function _check_rakefile() {
if [ ! -e Rakefile ]; then
return
fi

local tasks=`rake --silent -T | awk '{print $2}'`
COMPREPLY=( $(compgen -W "${tasks}" -- $2) )
}
complete -F _check_rakefile -o default rake

# Genereric bash configuration (with color) below:
# =============================================================================
Expand Down
4 changes: 3 additions & 1 deletion installation.sh
Expand Up @@ -17,6 +17,7 @@ sudo apt-get install \
libxml-ruby \
libxslt-ruby \
libxslt-dev \
graphviz \
-y

# Get the project it comes from and install it
Expand Down Expand Up @@ -70,4 +71,5 @@ sudo gem install \
faker \
railroad \
ya2yaml \
giraffesoft-resource_controller
giraffesoft-resource_controller \
hpricot

0 comments on commit c3789a4

Please sign in to comment.