Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom config path? #141

Open
Eoin-McMahon opened this issue Jul 4, 2021 · 2 comments
Open

Custom config path? #141

Eoin-McMahon opened this issue Jul 4, 2021 · 2 comments

Comments

@Eoin-McMahon
Copy link

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

@remi
Copy link
Owner

remi commented Jul 7, 2021

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!

@Eoin-McMahon
Copy link
Author

Eoin-McMahon commented Jul 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants