tmux.ts - v0.1.3
    Preparing search index...

    Variable respawnPaneConst

    respawnPane: (
        ...args: [
            shellCommand: string,
            options?: {
                environment?: string;
                kill?: boolean;
                startDirectory?: string;
                targetPane?: string;
            },
        ],
    ) => Effect<
        string,
        TmuxCommandOptionsError
        | TmuxProcessRunError,
        TmuxProcess,
    > = ...

    Reuse a tmux pane, running a new command in it (tmux respawn-pane).

    Type Declaration

      • (
            ...args: [
                shellCommand: string,
                options?: {
                    environment?: string;
                    kill?: boolean;
                    startDirectory?: string;
                    targetPane?: string;
                },
            ],
        ): Effect<
            string,
            TmuxCommandOptionsError
            | TmuxProcessRunError,
            TmuxProcess,
        >
      • Parameters

        • ...args: [
              shellCommand: string,
              options?: {
                  environment?: string;
                  kill?: boolean;
                  startDirectory?: string;
                  targetPane?: string;
              },
          ]

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

    await tmux.respawnPane("htop", { kill: true, targetPane: "work:1.1" });