-
-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
Update directory aliases to use cd command #11658
Conversation
Those are global aliases, that means that are not only commands. For example, EDIT: I see the regression, if there was an alias defined with the same name and omz overwrites it, our function will not be smart enough to detect it. We'll work to fix it. |
Ah neat, I didn't realize global aliases worked that way. That's actually quite convenient. Is it expected that |
It's a zsh option, that is set up here in ohmyzsh. It is disabled by default. |
Fix regression introduced in ohmyzsh#11550. If an existing alias was present in the moment of sourcing, and oh-my-zsh aliases were disabled for that file, it'd be overwritten aswell. See ohmyzsh#11658.
@mattdodge all your problems should be fixed in #11659. Could you try it with your existing config with |
@carlosala I'm still having issues, even on that branch. Although it seems like my root problem is something with To at least test your PR, I've overridden the |
nice, thanks for the testing! |
Fix regression introduced in ohmyzsh#11550. If an existing alias was present in the moment of sourcing, and oh-my-zsh aliases were disabled for that file, it'd be overwritten aswell. See ohmyzsh#11658.
Fix regression introduced in ohmyzsh#11550. If an existing alias was present in the moment of sourcing, and oh-my-zsh aliases were disabled for that file, it'd be overwritten aswell. See ohmyzsh#11658.
Fix regression introduced in ohmyzsh#11550. If an existing alias was present in the moment of sourcing, and oh-my-zsh aliases were disabled for that file, it'd be overwritten aswell. See ohmyzsh#11658.
Fix regression introduced in ohmyzsh#11550. If an existing alias was present in the moment of sourcing, and oh-my-zsh aliases were disabled for that file, it'd be overwritten aswell. See ohmyzsh#11658.
Standards checklist:
Changes:
cd
command inside the...
,....
, etc aliasesOther comments:
Ever since #11550 has shipped, my
...
aliases (which I used to override) have broken.The new behavior of actually unaliasing the aliases, rather than just bouncing out early means that my overrides no longer work. There is likely somewhere downstream I could move my aliases in my network of dotfiles, but I actually do like a lot of the directory aliases and I see no reason we can't just use the
cd
command in them rather than relying on some other shell shortcut.