{
  "id": "zsh",
  "name": "Zsh",
  "homepage": "https://www.zsh.org",
  "description": "A shell built for interactive use, with a scripting language to match.",
  "icon": "theSVG:zsh",
  "executables": [
    "zsh"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.zshenv",
      "~/.zprofile",
      "~/.zshrc",
      "~/.zlogin",
      "~/.zlogout",
      "~/.config/zsh/"
    ],
    "exclude": [
      "~/.zsh_history",
      "~/.zsh_sessions/",
      "~/.zcompdump*",
      "~/.config/zsh/.zsh_history",
      "~/.config/zsh/.zcompdump*"
    ],
    "secret": [],
    "machine_lines": [
      {
        "file": "~/.zshrc",
        "match": {
          "prefix": [
            "export HOMEBREW_PREFIX=",
            "export JAVA_HOME="
          ]
        },
        "scope": "platform"
      },
      {
        "file": "~/.zshrc",
        "match": {
          "prefix": [
            "export PATH=",
            "export NVM_DIR="
          ]
        },
        "scope": "backup"
      },
      {
        "file": "~/.zshenv",
        "match": {
          "prefix": [
            "export PATH=",
            "export ZDOTDIR="
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Run zsh",
    "description": "Run a command string or a script with zsh, optionally syntax-checking or tracing it. Named -o options and script arguments are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": true
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "revision": "zsh 5.9",
        "evidence": "  --help     show this message, then exit\n  --version  show zsh version number, then exit\n  -c         take first argument as a command to execute\n  -e    equivalent to --errexit\n  -f    equivalent to --no-rcs\n  -i    equivalent to --interactive\n  -l    equivalent to --login\n  -n    equivalent to --no-exec\n  -v    equivalent to --verbose\n  -x    equivalent to --xtrace\n"
      }
    ],
    "field": [
      {
        "id": "command",
        "label": "Command string",
        "type": "string",
        "option": [
          "-c"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "script",
        "label": "Script file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "position": 0,
        "sources": [
          "help"
        ]
      },
      {
        "id": "syntax_only",
        "label": "Syntax check only (do not execute)",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "xtrace",
        "label": "Trace commands as they run",
        "type": "boolean",
        "option": [
          "-x"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "verbose",
        "label": "Print input lines as read",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "errexit",
        "label": "Exit on first error",
        "type": "boolean",
        "option": [
          "-e"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_rcs",
        "label": "Skip startup files",
        "type": "boolean",
        "option": [
          "-f"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "login",
        "label": "Login shell",
        "type": "boolean",
        "option": [
          "-l"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "interactive",
        "label": "Force interactive",
        "type": "boolean",
        "option": [
          "-i"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "run_command",
        "label": "Run a command string",
        "fields": [
          "command",
          "no_rcs",
          "errexit",
          "xtrace"
        ],
        "required": [
          "command"
        ]
      },
      {
        "id": "check_script",
        "label": "Syntax-check a script",
        "fields": [
          "script",
          "syntax_only"
        ],
        "required": [
          "script"
        ],
        "set": {
          "syntax_only": [
            true
          ]
        }
      },
      {
        "id": "trace_script",
        "label": "Run a script with tracing",
        "fields": [
          "script",
          "xtrace",
          "errexit",
          "no_rcs"
        ],
        "required": [
          "script"
        ],
        "set": {
          "xtrace": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "command",
          "script",
          "syntax_only",
          "xtrace"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "verbose",
          "errexit",
          "no_rcs",
          "login",
          "interactive"
        ]
      }
    ]
  }
}
