You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copilot added a shell-specific aliases generator function.
❯ gh copilot alias --help
Generate optional shell-specific aliases and functions for invoking gh copilot commands.
These aliases and functions are not required to use gh copilot, but they can be useful forconvenience as they require fewer keystrokes and aidin executing suggested commands:
- `ghce`: wraps `gh copilot explain`
- `ghcs`: wraps `gh copilot suggest`, adding support for executing suggestions
Usage:
copilot alias<shell> [flags]
Examples:
# Add aliases to Bash configuration
$ echo'eval "$(gh copilot alias -- bash)"'>>~/.bashrc
# Add aliases to PowerShell profile
$ $GH_COPILOT_PROFILE = Join-Path -Path $(Split-Path -Path $PROFILE -Parent) -ChildPath "gh-copilot.ps1"
$ gh copilot alias -- pwsh | Out-File ( New-Item -Path $GH_COPILOT_PROFILE -Force )
$ echo". `"$GH_COPILOT_PROFILE`"">>$PROFILE# Add aliases to Zsh configuration$ echo'eval "$(gh copilot alias -- zsh)"'>>~/.zshrcFlags: -h, --help helpforaliasGlobal Flags: --hostname string The GitHub host to use for authentication
Could be added into CodePilot first initialization.
The text was updated successfully, but these errors were encountered:
Copilot added a shell-specific aliases generator function.
Could be added into CodePilot first initialization.
The text was updated successfully, but these errors were encountered: