pai
    Preparing search index...

    Function shellBlock

    • The block pai adds to a shell startup file. When the shell starts it sets PHANTOM_API_KEY, unless it is set already: on macOS straight from the Keychain item the login key points to, and otherwise (or with PHANTOM_KEY_NAME set) by running pai key show. The key itself is never written here. Each agent's own variables follow, set only when there is a key.

      Parameters

      • env: Env
      • fish: boolean

        Fish syntax instead of sh, bash and zsh.

      • state: ShellBlockState
      • onPathFn: (bin: string) => boolean = onPath

      Returns string

      Compatibility export. Use planSetup, applySetup, and restoreSetup for agent setup.