Skip to content

metaseed/pwsh

Repository files navigation

PWSH is a set of PowerShell modules/cmdlets to help automating the daily routine task. The goal is to save us time, effort and improve efficiency.

It is created with the script-mindset: Don't Repeat Yourself - DRY, repeat by scripts - RBS.

requirement

powershell 7 or later

install

iwr https://pwsh.page.link/0 |iex

Then you could use its cmd-lets and modules

Install latest or update

if($env:MS_PWSH) {. $env:MS_PWSH\update.ps1} else {iwr >> https://pwsh.page.link/0|iex}

install specific version

$v = 1.0.2 # default is latest
"&{$(iwr https://pwsh.page.link/0)} $v"|iex

Mis

posh-git

the profile contains posh-git config, to install posh-git

setup-poshGit

https://github.com/dahlbyk/posh-git

Development

Installation for developer

if you want to contribute to the development, and always using the latest code from the master branch.

"& {$(iwr https://pwsh.page.link/dev)} c:\" |iex

it will clone into c:\pwsh folder, replace c:\ to your own folder that used to contain the source code

note: it will clone the repo to the folder, and setup the profile.

local config

Set-ExecutionPolicy Bypass -Scope Process -Force;
.\config.ps1

release

repo url: https://github.com/metaseed/pwsh/

bump version and add a release tag for the repository

./release.ps1