Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • What is in ~/.zshrc? Something in there might be tripping up zsh's alias system? Maybe if you edit your question to state what you are trying to do with the alias, someone who knows a cleaner and efficient way to do so will contribute an answer?
    – C. M.
    Commented May 14, 2021 at 1:12
  • 1
    It would be interesting to know the definition of "it works". What is the outcome when it does not work? Also, what do you have to enter twice - goto or the alias command? While I can assume the most likely answers to these questions, it's better that you clarify them. Commented May 14, 2021 at 1:25
  • 6
    Aliases don't use arguments, the $@ isn't what you think it is there.
    – muru
    Commented May 14, 2021 at 1:53
  • Does it work when you use ; instead of &&? If so, then cd's exit status is not 0, which means it failed.
    – glibg10b
    Commented May 14, 2021 at 5:47