Skip to content

Tmuxinator

Resources

Conditional logic

Inspiration.

- mkdocs:
    - cd ~/Projects/knowledge
    - workon wiki
    <%- if args[0] == "up" %>
    - mkdocs serve --dirtyreload --dev-addr=localhost:8000
    <%- end %>

Dynamic session name

Inspiration

<% if @args[0] %>
<% WDIR=@args[0] %> 
<% else %>
<% WDIR=ENV["PWD"] %>
<% end %>

name: <%= WDIR.split('/').last.downcase  %>
root: <%= @args[0] %>