new file: functions/Override-Profile.ps1
new file: functions/Test-Profile
This commit is contained in:
parent
2aea742524
commit
342b8d8bef
8
functions/Override-Profile.ps1
Normal file
8
functions/Override-Profile.ps1
Normal 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
8
functions/Test-Profile
Normal 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!"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user