@0x12b/dotty-cli 中文文档教程

发布于 6年前 浏览 29 项目主页 更新于 3年前

@0x12b/dotty-cli

Dotty 是一个使用简单的 json 配置文件和自制软件在 macOS 上管理点文件和客户端绑定的工具。

Config

将您的配置放在名为 dotty.config.json 的文件中,例如在您的 dotfiles 存储库中。

dotfiles

ParameterUsage
labeldisplayed during installation
sourcethe destination of the symlink
targetthe full path of the symlink

brews / casks

ParameterUsage
namecask or formula to install
customCheckcommand to run to check if its already installed
preparecommand to run before attempting to install
extensionInstallCmdcommand to exec to perform extension installations
extensionsstring array of extensions for the install cmd

Example

{
  "dotfiles": [{
      "label": "example file",
      "source": "example.json",
      "target": "~/example.json"
    }
  ],
  "brews": [
    { "name": "wget"  },
    { "name": "sshfs" }
  ],
  "casks": [
    {
      "name": "spotify",
      "customCheck": "find /Applications/Spotify.app"
    },
    {
      "name": "dropbox",
      "customCheck": "find /Applications/Dropbox.app"
    },
    {
      "name": "slack",
      "customCheck": "find /Applications/Slack.app"
    },
    {
      "name": "osxfuse",
      "prepare": "brew tap homebrew/cask",
      "customCheck": "find /Library/PreferencePanes/OSXFUSE.prefPane"
    }
  ]
}

@0x12b/dotty-cli

Dotty is a tool for managing dotfiles and client rigging on macOS using a simple json config file and homebrew.

Config

Put your config in a file named dotty.config.json, for example in your dotfiles repo.

dotfiles

ParameterUsage
labeldisplayed during installation
sourcethe destination of the symlink
targetthe full path of the symlink

brews / casks

ParameterUsage
namecask or formula to install
customCheckcommand to run to check if its already installed
preparecommand to run before attempting to install
extensionInstallCmdcommand to exec to perform extension installations
extensionsstring array of extensions for the install cmd

Example

{
  "dotfiles": [{
      "label": "example file",
      "source": "example.json",
      "target": "~/example.json"
    }
  ],
  "brews": [
    { "name": "wget"  },
    { "name": "sshfs" }
  ],
  "casks": [
    {
      "name": "spotify",
      "customCheck": "find /Applications/Spotify.app"
    },
    {
      "name": "dropbox",
      "customCheck": "find /Applications/Dropbox.app"
    },
    {
      "name": "slack",
      "customCheck": "find /Applications/Slack.app"
    },
    {
      "name": "osxfuse",
      "prepare": "brew tap homebrew/cask",
      "customCheck": "find /Library/PreferencePanes/OSXFUSE.prefPane"
    }
  ]
}
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文