↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

Add a Bash-like autocomplete to your PowerShell

The post says PowerShell can behave more like Bash if you enable PSReadline in your profile. It also adds a small alias for open and suggests trying the new Windows Terminal for a better console experience.

Reading notes
#

  • PowerShell by default completes commands immediately and does not show a menu of matching options
  • Bash-style completion can be enabled through the PSReadline module in the PowerShell profile
  • Tab can be set to show a navigable menu of completion options
  • UpArrow and DownArrow can be set to search command history based on what you have already typed
  • The profile can be created if it does not exist and then edited directly from PowerShell
  • The post adds New-Alias open ii so open works like the macOS command and opens the current folder or a file
  • It recommends the new Windows Terminal preview because it offers tabs and more customization than the default console