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

Question/suggestion: printing alias content before execution #113

Open
1 of 4 tasks
nivgsk opened this issue Mar 22, 2022 · 1 comment
Open
1 of 4 tasks

Question/suggestion: printing alias content before execution #113

nivgsk opened this issue Mar 22, 2022 · 1 comment

Comments

@nivgsk
Copy link

nivgsk commented Mar 22, 2022

Issue Details

Operating System (uname -a)

Linux NivG-T490 5.4.0-104-generic #118~18.04.1-Ubuntu SMP Thu Mar 3 13:53:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

zsh version (zsh --version)

zsh 5.4.2 (x86_64-ubuntu-linux-gnu)

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

1.7.3

How is zsh-you-should-use installed?

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

Question/Suggestion

I have an idea that I wanted to document in an issue, in order to:

  1. Ask if the idea is feasible at all.
  2. If it is, then maybe take up on it when I can.

Would it be possible to use the existing framework to check if a command that has been entered is an alias, and if so, also print the full command before running it?

So an example execution would look something like this:

$ git pull
Found existing alias for "git pull". You should use: "gl"

$ gl
Running an aliased command: "git pull"
Already up to date.
@MichaelAquilina
Copy link
Owner

It's definitely possible and shouldnt be too difficult

I would make it an optional feature that is purely opt in.

I cant promise I will work on something like this anytime soon, but feel free to give it a go if you want :)

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

No branches or pull requests

2 participants