Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cross-shell completion #22

Merged
merged 1 commit into from
Feb 2, 2024
Merged

feat: cross-shell completion #22

merged 1 commit into from
Feb 2, 2024

Conversation

KSXGitHub
Copy link

@KSXGitHub KSXGitHub commented Feb 2, 2024

  • Fixed cross-shell completion issue:

    • Before this change, the completer would rely on the SHELL environment variable provided by the first login shell. This can be unreliable. For example: Launching bash from zsh does not change the SHELL environment variable which was already set to /bin/zsh.
    • After this change, the completion scripts will explicitly set the SHELL environment variable to whatever shell it supposed to serve.
  • Replace systemShell with getShellFromEnv and require the user to pass env explicitly.

* Fixed cross-shell completion issue:
  - Before this change, the completer would rely on the `SHELL` environment
    variable provided by the first login shell.
    This can be unreliable. For example: Launching another
    bash from zsh does not change the `SHELL` environment variable which
    was already set to `/bin/zsh`.
  - After this change, the completion scripts will explicitly set the
    `SHELL` environment variable to whatever shell it supposed to serve

* Replace `systemShell` with `getShellFromEnv` and require the user to
  pass `env` explicitly.
@zkochan zkochan merged commit af2404b into main Feb 2, 2024
8 checks passed
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.

2 participants