Skip to content

Sudo alias in shell integration breaks sudo --edit #6754

Description

@kidonng

Describe the bug

d96fdb8 introduced sudo alias which does not work with sudo --edit (or sudo -e).

The integration will need to check for the flag before adding the environment variable.

To Reproduce
Steps to reproduce the behavior:

  1. Enable shell integration, without no-sudo
  2. Run sudo -e
  3. See error
$ sudo -e /etc/pacman.conf
sudo: you may not specify environment variables in edit mode

Screenshots
N/A

Environment details
N/A

Additional context
N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions