Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/potatoqualitee/postprofile

Faster PowerShell Profiles
https://github.com/potatoqualitee/postprofile

Last synced: about 2 months ago
JSON representation

Faster PowerShell Profiles

Awesome Lists containing this project

README

        

# postprofile
~Faster~ Postpone importing PowerShell Profiles

Usage:

```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
```