{
  "id": "tmux",
  "name": "tmux",
  "homepage": "https://github.com/tmux/tmux/wiki",
  "description": "A terminal multiplexer: many terminals in one screen, in sessions that outlive the window.",
  "icon": "theSVG:tmux",
  "executables": [
    "tmux"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.tmux.conf",
      "[configHome]/tmux/"
    ],
    "exclude": [
      "~/.tmux/plugins/",
      "[configHome]/tmux/plugins/",
      "[configHome]/tmux/resurrect/"
    ],
    "secret": [],
    "machine_lines": [
      {
        "file": "~/.tmux.conf",
        "match": {
          "prefix": [
            "set -g default-shell",
            "set -g default-command"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "tmux sessions",
    "description": "Create, list, attach to and kill tmux sessions. Windows, panes and key bindings are left out.",
    "quality": "ai-draft",
    "base": "fig:tmux",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/tmux.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "new"
        ],
        "label": "New session",
        "description": "Create a new session.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmux.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "session_name",
            "label": "Session name",
            "type": "string",
            "option": [
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "window_name",
            "label": "First window name",
            "type": "string",
            "option": [
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "start_dir",
            "label": "Start directory",
            "type": "path",
            "option": [
              "-c"
            ],
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "detached",
            "label": "Detached (do not attach)",
            "type": "boolean",
            "option": [
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "attach_if_exists",
            "label": "Attach if it exists",
            "type": "boolean",
            "option": [
              "-A"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Shell command",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "new",
            "label": "Named session",
            "fields": [
              "session_name",
              "start_dir"
            ],
            "required": [
              "session_name"
            ]
          },
          {
            "id": "bg",
            "label": "Detached session",
            "fields": [
              "session_name",
              "detached",
              "command"
            ],
            "required": [
              "session_name"
            ],
            "set": {
              "detached": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "session_name",
              "start_dir",
              "detached",
              "attach_if_exists"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "window_name",
              "command"
            ]
          }
        ]
      },
      {
        "path": [
          "a"
        ],
        "label": "Attach to session",
        "description": "Attach to the last session or a named one.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmux.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "Target session",
            "type": "string",
            "option": [
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "detach_others",
            "label": "Detach other clients",
            "type": "boolean",
            "option": [
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "attach",
            "label": "Attach to session",
            "fields": [
              "target",
              "detach_others"
            ],
            "required": [
              "target"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "detach_others"
            ]
          }
        ]
      },
      {
        "path": [
          "ls"
        ],
        "label": "List sessions",
        "description": "List sessions on the server.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmux.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "format",
            "label": "Format",
            "type": "string",
            "option": [
              "-F"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "filter",
            "label": "Filter",
            "type": "string",
            "option": [
              "-f"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "ls",
            "label": "List sessions",
            "fields": [],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "format",
              "filter"
            ]
          }
        ]
      },
      {
        "path": [
          "kill-ses"
        ],
        "label": "Kill session",
        "description": "Destroy a session. Running programs in it are terminated.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tmux.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "Target session",
            "type": "string",
            "option": [
              "-t"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "all_others",
            "label": "Kill all but the target",
            "type": "boolean",
            "option": [
              "-a"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "kill",
            "label": "Kill session",
            "fields": [
              "target"
            ],
            "required": [
              "target"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "all_others"
            ]
          }
        ]
      }
    ]
  }
}
