new file: functions/Override-Profile.ps1

new file:   functions/Test-Profile
This commit is contained in:
Tomasz Kostrzewa 2024-03-05 18:57:20 +01:00
parent 2aea742524
commit 342b8d8bef
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# gitea.RdzeN.net
# Override $profile
function Override-Profile {
if ((Test-Path $PROFILE)) {
Copy-Item -Path $path_gitea_powershell_profile -Destination $PROFILE -Force
New-SimulateTyping "Your PowerShell profile was Override!"
}
}

8
functions/Test-Profile Normal file
View File

@ -0,0 +1,8 @@
# gitea.RdzeN.net
# Reload $profile
function Test-Profile {
if (-not (Test-Path $PROFILE)) {
Copy-Item -Path $path_gitea_powershell_profile -Destination $PROFILE
New-SimulateTyping "Your PowerShell profile was created!"
}
}