Skip to content

Change root behaviour: relative to current directory if a relative path is defined #143

@froblesmartin

Description

@froblesmartin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions