Using Powershell Aliases in a Pipeline
Example
To use the alias m
to launch the editor Micro, open your Powershell profile in your editor:
Next, add the following function and alias:
Note the use of the special variables $input
and $args
.
$input |
allows Micro to respond to information piped to it, such as echo "test" | m
.
$args
allows Micro to receieve arguments such as m --version