Closed 237dmitry closed 2 weeks ago
Set-Item Function:ttymc 'mc -bS default @args'
This I think is a similar enough request to #12962 that can close this as Resolution-Duplicate
this as Resolution-Duplicate
Not to write scripts, functions or install 3party modules.
This is not resolution. Because function is not an alias. This is feature request and not looking for workaround.
The linked duplicate explicitly asks for an alias-based solution.
The linked duplicate explicitly asks for an alias-based solution.
I couldn't find a solution there. Just a workaround with functions. I want to get rid of the alias functions because there is a list of natural aliases and a few other functions. In my opinion, this is generally not neat, but I like order when everything is in its place.. The only good thing is that aliases of functions are displayed with Get-Alias
cmdlet.
If it duplicate https://github.com/PowerShell/PowerShell/issues/12962 then I will close this issue tomorrow.
Generally speaking, @237dmitry:
It is asking for the same thing / reporting the same problem that makes a preexisting issue a duplicate, not whether or not the thing that was asked for has since been implemented / a (satisfying) workaround has been posted.
As for a unified discovery mechanism for different command forms: that's what Get-Command
is for.
📣 Hey @237dmitry, how did we do? We would love to hear your feedback with the link below! 🗣️
🔗 https://aka.ms/PSRepoFeedback
Summary of the new feature / enhancement
Not to write scripts, functions or install 3party modules.
For example:
instead of:
Like in bash.
alias alias_name="Command --with-parameters"
Proposed technical implementation details (optional)
No response