modified: RdzeN-Profile.ps1

This commit is contained in:
Tomasz Kostrzewa 2024-03-05 21:51:55 +01:00
parent 624ec6f08c
commit f224ea0a60

View File

@ -44,3 +44,12 @@ if (-not (Get-ChildItem $path_gitea_powershell_profile_functions).count -gt 0) {
Get-ChildItem $path_gitea_powershell_profile_functions | ForEach-Object { Get-ChildItem $path_gitea_powershell_profile_functions | ForEach-Object {
. $_.FullName . $_.FullName
} }
# 4. list functions
$functions = Get-ChildItem $path_gitea_powershell_profile_functions | Sort-Object
for ($i = 0; $i -lt $functions.Count; $i++) {
Write-Host "$i)`t$(($functions[$i].Name).Replace('.ps1',''))"
}
# 99. Prompt profil loaded
New-SimulateTyping "PowerShell User Profile is loaded"