Skip to content

Commit

Permalink
Added a helper function example to textmate page
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Jan 1, 2011
1 parent 76c1362 commit ce94773
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
12 changes: 12 additions & 0 deletions content/integration/textmate.haml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,15 @@
%pre.code
:preserve
exec ruby -wKU "$@"
%h2
Miscellaneous
%p
You can create a shell function to open a project directory with files excluded.
Here is a simple example of this idea:
%script{:src => "https://gist.github.com/762023.js?file=gistfile1.sh"}
%p
The above function code (minus the first line) is placed in your dotfiles or
\~/.bash_profile if you do not maintain dotifiles.
16 changes: 9 additions & 7 deletions content/workflow/rvmrc.haml
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,15 @@
rvm --create "${ruby_string}@${gemset_name}"
fi
# Ensure that Bundler is installed, install it if it is not.
if ! command -v bundle ; then
gem install bundler
fi
# Bundle while redcing excess noise.
bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d'
(
# Ensure that Bundler is installed, install it if it is not.
if ! command -v bundle ; then
gem install bundler
fi
# Bundle while redcing excess noise.
bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d'
)&
else
Expand Down

0 comments on commit ce94773

Please sign in to comment.