Edit the configuration
If ((Test-Path $Profile) -eq "True") {Notepad $Profile}
(create one)
New-Item -path $profile -type file -force
oh-my-posh (https://github.com/JanDeDobbeleer/oh-my-posh) is useful, together with posh-git.
in a nutshell:
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Add this to your profile to activate it:
# Import-Module posh-git
Import-Module oh-my-posh
# Set-Theme Paradox
# Speed up large repos
$GitPromptSettings.EnableFileStatus = $false
Some useful settings:
function f_timer($program) {
$allArgs = $PsBoundParameters.Values + $args
$sw = [Diagnostics.Stopwatch]::StartNew();
iex "$allArgs";
$sw.Stop();
$sw.Elapsed;
}
Set-Alias which where
Set-Alias time f_timer