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

not working with sudo #136

Open
1 of 4 tasks
davidavn opened this issue Jul 28, 2024 · 2 comments · May be fixed by #137
Open
1 of 4 tasks

not working with sudo #136

davidavn opened this issue Jul 28, 2024 · 2 comments · May be fixed by #137

Comments

@davidavn
Copy link

Issue Details

Please provide the following details when opening an issue:

The plugin does not suggest aliases when typing a sudo command

Operating System (uname -a)

Linux L1800101964 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

zsh version (zsh --version)

zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

you-should-use version (echo "$YSU_VERSION")

1.8.0

How is zsh-you-should-use installed?

  • zplug
  • oh-my-zsh
  • Antigen
  • Other (please specify)

Steps to reproduce the issue

❯ git version
Found existing alias for "git". You should use: "g"
git version 2.34.1
❯ sudo git version
git version 2.34.1

gist link to your zshrc

dont think its relevant, standard oh -my-zsh

@MichaelAquilina MichaelAquilina linked a pull request Jul 31, 2024 that will close this issue
@MichaelAquilina
Copy link
Owner

I opened an experimental branch to fix this issue if you want to check it out #137

@davidavn
Copy link
Author

davidavn commented Aug 4, 2024

looks like it work:

❯ git status
Found existing alias for "git status". You should use: "gst"
fatal: not a git repository (or any of the parent directories): .git
❯ sudo git status
Found existing alias for "git status". You should use: "gst"
fatal: not a git repository (or any of the parent directories): .git

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 a pull request may close this issue.

2 participants