Skip to content

Customized PowerShell environment packaged into a deployable portable package.

License

Notifications You must be signed in to change notification settings

TheTaylorLee/PSPortable

Repository files navigation

PSPortable

Deploys a portable PowerShell package with often used modules. When updates are released, launching PSPortable will present a changelog and prompt to use update-console to update if desired.

  • Post Januarary 2024 Branch Fix

    • If you are coming here because update-console fails. The branch name was changed January 2024. Delete the psportable folder and then run below scripts. If you however are navigating to this readme for the first time, skip the first code block.
    remove-item C:\ProgramData\PS7x64 -Recurse -force
  • Install Oh-MyPosh

    • Skip if this is a server environment since oh-my-posh will not be used
    • Run from an admin pwsh prompt and not PowerShell
    try{
    Remove-Item $env:POSH_PATH -Force -Recurse
    Uninstall-Module oh-my-posh -AllVersions
    } catch { }
    winget install JanDeDobbeleer.OhMyPosh -s winget
  • Install PSPortable Full or Light

    • Open an admin PowerShell prompt
    • Run the below script to include all modules and update existing module that will be included
    Set-ExecutionPolicy Unrestricted -confirm:$false -Force -Scope CurrentUser
    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    (invoke-webrequest https://raw.githubusercontent.com/TheTaylorLee/PSPortable/main/Deploy-Prompter.ps1 -usebasicparsing).content | Invoke-Expression
  • Using PSPortable or PSPortableLight in Terminal

    These steps offer a guide to use PSPortable or PSPortableLight in Windows Terminal as intended. These steps will install a Nerdfont and Git, so the Oh-My-Posh theme is properly presented. Only perform these steps if you also install oh-my-posh

    • Install Nerd Font, Git, and sign into Git account
    Install-Font
    Install-chocolatey
    choco install git
    git config --global user.name "account"
    git config --global user.email "email@site.com"
    • Terminal settings should be configured to your preference, Example Settings
      • Nerd Font must be specified in the PSPortable or PSPortableLight profile.

About

Customized PowerShell environment packaged into a deployable portable package.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages