![]() ![]() You can also set command line handlers so pressing "up arrow" with some existing text will find that item in history. The most important one being the PowerShell equivalent of ctrl-r "bck-i-search" that bash users enjoy. You get nice improvements with bash-like command line editing. I cherry-picked the best parts out of this and I recommend you do the same! It was this totally configured and blinged out sample PSReadline Profile that made me realize I wasn't doing enough. But the thing I was not really digging into was customizing my $profile to light up cool features and set keybindings that made sense to me. I usually do this: notepad $PROFILEĪnd add if ($host.Name -eq 'ConsoleHost')įirst, PSReadLine makes everything better with sprinkles of color everywhere automatically. If you want the latest, otherwise remove the Prerelease. Head over to a prompt and run Install-Module PSReadLine -AllowPrerelease -Force Head over there and give them some love and a star and buckle up, friends! Wow was I wrong.ĭon't sleep on PSReadLine if you use PowerShell as your preferred prompt. Honestly, at the time I wouldn't be able to tell you what it offered me as a command line users. I even used PSReadLine, a bash inspired readline implementation for PowerShell.īut was I REALLY USING IT? No. I thought I had things pretty well dialed in. ![]() ![]() I've also set up autocomplete in PowerShell (type something, then TAB) with git and dotnet!ĭo make sure you know the difference between a console, terminal, and shell. I use it in the Windows Terminal and I have a pretty prompt thanks to OhMyPosh. NET Core) as my main shell of choice at the Windows command line. ![]() I use PowerShell 7 (cross platform, open source, runs on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |