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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom config path?

Eoin-McMahon opened this issue · comments

Is it possible to have my .yml file in a different directory than ~/teamocil
I would rather have all my configuration stuff in .ocnfig/ i.e .config/teamocil/configuration.yml

Is this possible in the current version of teamocil? I don't see anything about it in the readme

Hi Eóin,

Teamocil currently only supports ~/.teamocil (source).

However, there is a very simple way to achieve what you want — you can create a symbolic link at ~/.teamocil to point to another directory.

$ ln -s ~/config/teamocil ~/.teamocil
$ ls -a ~ | grep teamocil
.teamocil -> ~/config/teamocil

Hope this helps!

I don't know whether you are open to PR's or not but it would be nice to even have something like this:

  class CLI < ClosedStruct.new(:arguments, :environment)
    DIRECTORY = ENV['TEAMOCIL_CONFIG'] || '$HOME/.teamocil'

Sym links can get messy, especially when you move machines a lot.

Otherwise a -c CONFIG_PATH argument would be nice