I have setup .bash_aliases and source that file in .zshrc and everything works as it should, for that user.
But if I try to use sudo and “tab” it wont search the aliases.
I also add a location to $PATH in .zshrc and THAT is fetched without problems with sudo.
If I use bash instead (with .bashrc) sudo finds my aliases just fine.
I have the alias sudo='sudo ' thing in the aliases…
How do I get zsh to find my aliases as sudo?
(yes, I can add sudo in front of my aliases that needs it in .bash_aliases but I rather not, besides, it works in bash, should be able to work in zsh aswell no?)
Can you point me in a direction of some documentation?
I have spent a couple of hours trying to solve this silly (yes it is very silly) problem for me. xD
Not sure if I should place the plugins=(alias-finder) in my ~/.zshrc or in the config that is sourced (/usr/share/zsh/manjaro-zsh-config)
I tried in .zshrc but it did not change anything.
And with plugins=(aliases) I should be able to use als in cli to “show all aliases by group”. The command is not found.
No idea what I should do, I guess “test different config files until I run out of ideas” is what I have to do first.
You pointed me in a direction and I thank you for that sir!
Thank you, I might look deeper into this.
I have not installed oh-my-zsh (did not understand that was a requirement, I thought I could change the manjaro-zsh configs or .zshrc)
But thank you, I will look into this, sometime, because as I said, it is a bit “silly”.
For now, I will complete my aliases then press home > sudo > space… Because this is outside what I know, but am willing to learn.