Prerequisites
Exception report
[no errors are output in my issue]
Screenshot

Environment data
PS Version: 7.3.4
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.3.4
PSReadLine EditMode: Windows
OS: Windows 11
BufferWidth: 172
BufferHeight: 32
Steps to reproduce
The Alias dir which is by default is assigned to get-childitem cannot be repurposed by the user to something else, of their own choosing.
- Remove the default
dir alias with `Remove-Alias -Name dir
- Assign the alias
dir to another command `set-alias -Name dir -Value start-process
- Type
dir then space and try to tab to get parameter suggestions
PsReadline suggests get-childitem parameters instead of the parameters for get-process such as filepath.
The alias is bound to get-process, which can be confirmed by just executing dir.
I have been having this issue with older PsReadline versions too.
Of course, it makes no sense to assign dir to get-process, its just an example, I want to use dir for my own command. Cheers
Expected behavior
When I use dir, I am expecting the parameters for get-process to be suggested instead of get-childitem
Actual behavior
[I dont understand this section]
Prerequisites
Exception report
[no errors are output in my issue]Screenshot
Environment data
Steps to reproduce
The Alias
dirwhich is by default is assigned toget-childitemcannot be repurposed by the user to something else, of their own choosing.diralias with `Remove-Alias -Name dirdirto another command `set-alias -Name dir -Value start-processdirthenspaceand try totabto get parameter suggestionsPsReadline suggests
get-childitemparameters instead of the parameters forget-processsuch asfilepath.The alias is bound to
get-process, which can be confirmed by just executingdir.I have been having this issue with older PsReadline versions too.
Of course, it makes no sense to assign
dirtoget-process, its just an example, I want to usedirfor my own command. CheersExpected behavior
When I use
dir, I am expecting the parameters forget-processto be suggested instead ofget-childitemActual behavior
[I dont understand this section]