Skip to content

1000Add initial console log for greeting#3873

Open
EverydayEvertime wants to merge 68 commits into
github:install-auth-fallbackfrom
EverydayEvertime:main
Open

1000Add initial console log for greeting#3873
EverydayEvertime wants to merge 68 commits into
github:install-auth-fallbackfrom
EverydayEvertime:main

Conversation

@EverydayEvertime

Copy link
Copy Markdown

No description provided.

github-actions Bot and others added 30 commits March 11, 2026 19:52
The installer was adding PATH exports to .bashrc/.zshrc, which are
rc files for interactive shells.  PATH belongs in login-shell startup
files (~/.profile, ~/.bash_profile, ~/.zprofile) so it is set once
per session and inherited by all child processes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ofile

Alter PATH for login shells, not interactive shells
Tags are sorted lexicographically by default, not by version,
so for example right now `git ls-remote` for this repo shows:

```
$ git ls-remote --tags \
  https://github.com/github/copilot-cli \
  | tail -3 | awk -F/ '{print$NF}'
v1.0.8
v1.0.8-0
v1.0.9
```

With the sort option, it shows the correct latest prerelease tags:

```
$ git ls-remote --tags --sort "version:refname" \
  https://github.com/github/copilot-cli \
  | tail -3 | awk -F/ '{print$NF}'
v1.0.12-0
v1.0.12-1
v1.0.12-2
```

This option for git ls-remote was added in git version 2.18.0 in June 2018:
https://github.com/git/git/blob/v2.18.0/Documentation/RelNotes/2.18.0.txt#L69-L70
Sort git tags when determining prerelease version
Fish shell users currently fall into the catch-all case, which writes
POSIX export syntax to ~/.profile. Fish does not source ~/.profile and
does not use export PATH="...:$PATH" syntax, so the PATH addition
silently does nothing.

Add a fish case that targets the idiomatic conf.d directory and uses
fish_add_path, matching how the script already handles zsh and bash
with their respective profile files and syntax. Extract the PATH
command into a variable to avoid duplicating the shell-specific logic
across the interactive prompt, non-interactive hint, and get-started
instructions.
Replace scattered rm -rf calls with a single EXIT trap to ensure the
temp directory is always cleaned up on exit. Previously, failures in
curl/wget download, tar extraction, chmod, or mkdir left temp files
behind because set -e would exit before reaching manual cleanup calls.

The trap fires on any exit (success or failure), so it covers all
paths with one line while removing five redundant cleanup calls.
install: use EXIT trap for temp directory cleanup
…l-path

install: add fish shell support for PATH configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.