remi / teamocil

There's no I in Teamocil. At least not where you think. Teamocil is a simple tool used to automatically create windows and panes in tmux with YAML files.
MIT License
2.36k stars 101 forks source link

first window root not being set properly #76

Closed pklingem closed 10 years ago

pklingem commented 10 years ago

the following is my config in ~/.teamocil/project.yml:

name: project
windows:
  - name: server
    root: ~/code/project
    panes:
      - grunt
  - name: vim
    root: ~/code/project
    panes:
      - vim
  - name: terminal
    root: ~/code/project
    panes:
      - git status

when I do the following:

tmux
teamocil --here project

the first window's root directory is not set properly, it remains as ~/

ryane commented 10 years ago

+1. this is broken for me too. Looks like --here just renames the window and doesn't even attempt to set the root directory.

onyxfish commented 10 years ago

I'm also seeing this.

remi commented 10 years ago

Ah yes, this is a bug indeed. It’s because we use split-window -c <path> to set the root path.

What do you guys think about using cd <path> after renaming the first window?

onyxfish commented 10 years ago

I currently have cd <path> as the first command for my first window as a workaround. I can't see any reason why automating this would be a problem.

onyxfish commented 10 years ago

Thanks!