https://github.com/potatoqualitee/postprofile
Faster PowerShell Profiles
https://github.com/potatoqualitee/postprofile
Last synced: 2 months ago
JSON representation
Faster PowerShell Profiles
- Host: GitHub
- URL: https://github.com/potatoqualitee/postprofile
- Owner: potatoqualitee
- License: mit
- Created: 2021-04-14T19:02:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T05:24:55.000Z (about 4 years ago)
- Last Synced: 2024-10-30T08:36:17.079Z (6 months ago)
- Language: PowerShell
- Size: 6.84 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - potatoqualitee/postprofile - Faster PowerShell Profiles (PowerShell)
README
# postprofile
~Faster~ Postpone importing PowerShell ProfilesUsage:
```powershell
# Import this module
Import-Module -Name postprofile# Schedule work to be run after the delay
Import-PostProfile -ScriptBlock {
# Your code to be postponed.
# Run any code:
Write-Host "See you later!"# Import modules:
Import-Module -Name PSReadline# Set variables:
$hello = "abc"# Import script files by dot sourcing them, you can provide parameters as well:
. somefile.ps1 -Name "some name"
} -Delay 1000
```