News for hackers. Stuff that matters.
Re:ZSH Aliases by thorstenhans on Tuesday May 26, 2020 @07:34AM (#23309798)
Well, first I thought about publishing 4 types (I see functions as a valid kind of alias)

However, the os-specific aliases became more and more important to me due to GitHub and VisualStudio Codespaces. Targeting different operating systems is quite important to me.

But technically it's just a regular alias. (Which is also mentioned in the corresponding paragraph)

Re:ZSH Aliases by asicsp on Tuesday May 26, 2020 @07:52AM (#23309949)
>This article will teach you how to create and use these four types of aliases

>You have seen four different types of ZSH aliases that will boost your productivity

`four` in these two lines is typo or intentional? Because the title says `5 Types Of ...`

Re:ZSH Aliases by thorstenhans on Tuesday May 26, 2020 @08:19AM (#23310181)
thanks for the feedback. I've updated the corresponding parts
Re:ZSH Aliases by anamexis on Tuesday May 26, 2020 @11:18AM (#23312204)
This caught my attention too. A cursory search of the zsh docs don't mention functions being a type of alias. In particular:

> The registration of aliases with parameters looks pretty similar to a function definition in regular programming languages.

Well that's because it is a function definition in this programming language, no?

Furthermore, this breaks down when you, say, use `alias` to view all your aliases. It won't show the functions, because they are not aliases.

Re:ZSH Aliases by mqus on Wednesday May 27, 2020 @10:20AM (#23323697)
i think one of the main advantages of zshs aliases (compared to bash aliases) is autocompletion, so I would not count regular functions as a kind of alias. But I can see the similarities.