31 Mar 2024

Tab Auto Completion of History Commands for PowerShell

收藏到CSDN网摘

PowerShell has the capability of Tab auto completion. Moreover, it also remind you the last used parameters and commands in the history as grayed out text. However, Tab cannot auto-complete these grayed-out words - they are there as the reminder to guide your typing. There are two commands to run for enabling the tab completion on these parameters/commands.

Speed up Oh-My-Posh Cold Start

收藏到CSDN网摘

Oh-My-Posh is a beautiful cross-platform command line customisation tool that runs on windows, linux, and mac. I have set up it for my win11 laptop's Terminal (PowerShell) and WSL2 prompt. One day, I've noticed that it started incredibly slow (>20s). After browsing the internet for a while, a simple fix is to replace the existing one line code in my $PROFILE setting file. Here it is!