Skip to content

[FEATURE] Add macOS/Darwin option to dotter.os variable #201

@Nico-Mayer

Description

@Nico-Mayer

Hey, first of all, thanks for the great project I really enjoy using it!

Some of my dotfiles contain configurations that are specific to macOS and end up breaking things on Linux. Currently(ssh config), it isn’t possible to distinguish between the two in the templating system, since dotter.os only supports windows and unix.

I think it would be very helpful to add a dedicated option for macOS to allow more finegrained templating.

The desired behavior would look like this:

  • dotter.os == windows → true on Windows
  • dotter.os == unix → true on Linux and macOS
  • dotter.os == macos → true only on macOS

I’m not sure if it would also make sense to add an explicit option for Linux, or if that would be unnecessary but having macos available would already solve the issue.

Kind regards

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