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.35k stars 101 forks source link

permission denied when trying to sudo --edit sample.yml #83

Closed bhartsb closed 9 years ago

bhartsb commented 9 years ago

First it complains about not having write permission so I run it with sudo. i.e. sudo teamocil --edit sample prompts for password I type in password I get: sh:/.../sample.yml: Permission denied

remi commented 9 years ago

What is the value of your $EDITOR variable?

$ echo $EDITOR
bhartsb commented 9 years ago

No value set.

On Wed, Nov 19, 2014 at 2:09 PM, Rémi Prévost notifications@github.com wrote:

What is the value of your $EDITOR variable?

$ echo $EDITOR

— Reply to this email directly or view it on GitHub https://github.com/remiprev/teamocil/issues/83#issuecomment-63723335.

remi commented 9 years ago

In README.md it says:

Option Description
--edit Opens the layout file with $EDITOR instead of executing it

You should set your $EDITOR variable to something like vim or nano. That will fix the issue :smile: