modified: RdzeN-Profile.ps1
This commit is contained in:
parent
be8ff7fb05
commit
fa4d6a45a7
@ -70,11 +70,7 @@ Get-ChildItem $path_to_search | ForEach-Object {
|
||||
foreach ($match in $matches) {
|
||||
$found_functions += $match.Value.Trim()
|
||||
}
|
||||
}
|
||||
|
||||
if ($git_repo_update -eq $true) {
|
||||
Override-Profile
|
||||
Reload-Profile
|
||||
. $_
|
||||
}
|
||||
|
||||
$found_functions = $found_functions | Sort-Object
|
||||
@ -85,6 +81,11 @@ for ($i = 0; $i -lt $found_functions.Count; $i++) {
|
||||
Write-Host "$($found_functions[$i])" -ForegroundColor Cyan
|
||||
}
|
||||
|
||||
if ($git_repo_update -eq $true) {
|
||||
Override-Profile
|
||||
Reload-Profile
|
||||
}
|
||||
|
||||
# 99. Prompt profile loaded
|
||||
New-SimulateTyping "PowerShell User Profile is loaded"
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user