5 ms·
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
by thorstenhans 6y ago
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)
- asicsp 6y ago>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 ...`
- thorstenhans 6y agothanks for the feedback. I've updated the corresponding parts
- anamexis 6y agoThis 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.
- mqus 6y agoi 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.