Skip to content

Add feature to differentiate OS #31

@thomasrogerlux

Description

@thomasrogerlux

Hello,

Currently with the hosts option in the link task I can differentiate Linux and MacOS only if I enter specific hostname for each of my machines.

It would be a nice feature to keep the same system but to allow differentiation of the OS.

Here is an example:

"link": {
    "~/.emacs": {
        "os": {
            "Darwin": "emacs.macos",
            "Linux": "emacs.linux",
            "-": "emacs.generic"
        }
    }
}

It could be used to have different path depending on the operating system too:

"link": {
    "~/Library/Application Support/Code/User/settings.json": {
        "os": {
            "Darwin": "settings.json"
        }
    },
    "~/.config/Code/User/settings.json": {
        "os": {
            "Linux": "settings.json"
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions