Skip to content

potatoqualitee/postprofile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

postprofile

Faster Postpone importing PowerShell Profiles

Usage:

# 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

About

Faster PowerShell Profiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published