Skip to content

Commit

Permalink
Use build_command helper function to build pre command
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Jun 15, 2011
1 parent 9a706b5 commit 8f3605d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tmuxinator/assets/tmux_config.tmux
Expand Up @@ -3,7 +3,7 @@ tmux start-server

if ! $(tmux has-session -t <%=s @project_name %>); then
cd <%= @project_root || "." %>
<%= @pre.kind_of?(Array) ? @pre.join(" && ") : @pre %>
<%= @pre %>
tmux new-session -d -s <%=s @project_name %> -n <%=s @tabs[0].name %>
tmux set default-path <%= @project_root %>
tmux set-option base-index 1
Expand Down
2 changes: 1 addition & 1 deletion lib/tmuxinator/config_writer.rb
Expand Up @@ -47,7 +47,7 @@ def process_config!
@project_name = yaml["project_name"]
@project_root = yaml["project_root"]
@rvm = yaml["rvm"]
@pre = yaml["pre"]
@pre = build_command(yaml["pre"])
@tabs = []

yaml["tabs"].each do |tab|
Expand Down

0 comments on commit 8f3605d

Please sign in to comment.