Sebastiaan
03/03/2022, 2:50 PMnotepad $PROFILE
is where you start adding stuff to load when your powershell loads and reloading is done with . $PROFILE
And then it's a question of finding a posh theme that suits you and start customizing it by doing Export-PoshTheme
as noted in their docsNik
03/04/2022, 10:07 AMSebastiaan
03/04/2022, 10:25 AMdotnet run
+ Enter in the current window, also very useful!Sebastiaan
03/04/2022, 10:26 AMMatt Wise
03/04/2022, 10:44 AMSebastiaan
03/04/2022, 11:16 AMSebastiaan
03/04/2022, 11:17 AMNik
03/04/2022, 11:42 AM# PowerShell parameter completion shim for the dotnet CLI
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock {
param($commandName, $wordToComplete, $cursorPosition)
dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object {
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
}
}
Up/down last commands, but extended as it persists beyond the current instance of your powershell as it reads from the history
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
I also have Import-Module npm-completion
for autocomplete on npm commandsSebastiaan
03/04/2022, 11:49 AMSebastiaan
03/04/2022, 11:51 AMdotnet
and then CTRL+SPACE
gives hints.. cool!Sebastiaan
03/04/2022, 11:54 AMWarren Buckley
03/07/2022, 10:12 AMSebastiaan
03/07/2022, 10:19 AMWarren Buckley
03/07/2022, 11:05 AMSebastiaan
03/07/2022, 11:27 AM