-
Notifications
You must be signed in to change notification settings - Fork 155
Description
Hi there! First of all, thanks for the nice and simple solution! 😄
Now, my use case is that I open a bunch of microservices, each in a folder and run them in development mode.
I have set up the file iTermocil.yml in my repository so that everybody can just run itermocil and get everything running.
The situation I have faced is that each developer can have the repository checked out in a different path, so for root we can not use anything. Initially, I configured that as root: . expecting it to work, as itermocil is executed from the repository itself, but itermocil relies on the iTerm behaviour. If the profile is configured to open new tabs in $HOME, it does not work because the . does not point to the repository, just to ., which in that case is the home directory.
I wanted first to discuss the implementation so that if wanted, I could open a PR then.
My proposal is, if root starts with a dot ., make cd move relatively to where itermocil has been invoked, and if it is an absolute path, then just go there.