TomAnthony / itermocil

Create pre-defined window/pane layouts and run commands in iTerm
MIT License
2.33k stars 165 forks source link

Pane-less window malfunctions #61

Open AdrianTP opened 7 years ago

AdrianTP commented 7 years ago

The following iTermocil config:

windows:
  - name: test
    root: ~
    command: echo 'hello'

results in the following output:

Last login: Tue May  2 13:35:58 on ttys019
e; c; h; o;  ; '; h; e; l; l; o; '
<compname>:~ <username>$ e; c; h; o;  ; '; h; e; l; l; o; '
-bash: syntax error near unexpected token `;'
<compname>:~ <username>$

It seems I am unable to open a pane-less window.

$ itermocil --version
0.2.1
jlhall commented 7 years ago

@AdrianTP Hmm, definitely a bug with the command argument parsing, but for anyone landing on this issue whom may actually have a use case revolving around

I would encourage them in the mean time to try one of the following:

windows:
    - name: test
    root: ~
    commands:
        - echo 'hello'

It appears to work flawlessly as the commands argument handles a single item Array just as well as a multi-member Array of commands. That should get you through, cheers!

nezo commented 7 years ago

This issue seems to be fixed already, as you may see here.

Probably just needs a release :)

Northshoot commented 6 years ago

is release planed anytime soon?

AdrianTP commented 6 years ago

Well I completely forgot I ever had this issue, but I am grateful nonetheless for @jlhall's detailed response. 😄