Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Significant Zsh startup delay after adding gh copilot alias #9950

@aofei

Description

@aofei

Describe the bug

After adding eval "$(gh copilot alias -- zsh)" to my $HOME/.zshrc, I've noticed a significant slowdown in Zsh startup time. This severely impacts the terminal user experience, as every new session takes noticeably longer to become responsive.

Environment

  • gh --version: gh version 2.62.0 (2024-11-14)
  • Chip: Apple M4 Pro
  • Operating System: macOS 15.1.1 (24B2091)
  • Terminal Emulator: iTerm2 Build 3.5.10
  • Shell: zsh 5.9 (arm64-apple-darwin24.0)

Steps to reproduce the behavior

  1. Add eval "$(gh copilot alias -- zsh)" to $HOME/.zshrc.
  2. Observe the delay in shell startup time.

Expected vs actual behavior

recording.mov

Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-extensionrelating to the gh extension commandp2Affects more than a few users but doesn't prevent core functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions