Timeline for How to use alias inside another alias in ZSH?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 22, 2022 at 5:40 | history | edited | Marlon Richert | CC BY-SA 4.0 |
added 222 characters in body
|
Jul 7, 2022 at 19:56 | history | edited | Marlon Richert | CC BY-SA 4.0 |
Use single quotes
|
Apr 11, 2022 at 14:22 | comment | added | Marlon Richert |
@ReynierPM If cd /usr succeeds (returns 0), then whatever is to the right of || won’t be evaluated. See zsh.sourceforge.io/Doc/Release/…
|
|
Mar 30, 2022 at 11:26 | comment | added | ReynierPM |
I know this is a bit dated now but ... how do you call others aliases inside your alias function? Let's say you have the docker-compose plugin enabled and I want to call dcup inside my alias... I did it as (this goes inside my function) cd /usr || exit && dcup but it does not execute the 2nd command in the chain meaning dcup never gets executed
|
|
May 23, 2021 at 18:54 | vote | accept | ReynierPM | ||
May 23, 2021 at 12:39 | vote | accept | ReynierPM | ||
May 23, 2021 at 12:39 | |||||
May 23, 2021 at 10:01 | history | answered | Marlon Richert | CC BY-SA 4.0 |