That happens because bash will replace an alias only if it is is the first word. You can set the alias alias sudo='sudo '. Because it has a space at the end it will also check the parameter('l' in your situation) if it is an alias. \-------- Original Message -------- On May 1, 2023, 11:03 PM, Qubes < qubes...@ak47.co.za> wrote:
> > > Vít Šesták wrote: > I have several ways: > > a. Google > b. ChatGPT, e.g. > > “Can I configure XFCE Terminal for all users?” (real > example copied from > > my history) > c. Try to find a file with the same name (maybe without > > initial dot) in > /usr, /etc, etc. Something like this: sudo find / -xdev > > -name zshrc > I have a question that I was hoping someone can shed some > > light on. I put an alias, now in /etc/bashrc to make it global, to alias > > l='ls -Ahl' This works everywhere but it does not work with sudo, > > \[user@fedora ~\]$ sudo l sudo: l: command not found > > \[user@fedora-37-m-default ~\]$ Why is that, can I make it comply? -- You > > received this message because you are subscribed to the Google Groups > > "qubes-users" group. To unsubscribe from this group and stop receiving > > emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/qubes-users/0d57fe08-5556-cf45-7ab1-6fdc376281ef%40ak47.co.za. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/fqO_IiJxnkI_1dPgRdYog0VY5gjcAtIaqbCBRWzykKL1rEB6nWhlm9nVUOFihwAT-SpshwjSouETjvdWJ1t2_ACOyeWdZBBh8HTb6L1jeXg%3D%40cristiioan.me.
publickey - EmailAddress(s=cristiioan@cristiioan.me) - 0xDAC92D89.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature