Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
install-powershell.sh-README.md69 linesDownload Raw Back to tools
1# install-powershell.sh2 3## Features of install-powershell.sh4 5* Can be called directly from git6* Optionally installs vs code and vs powershell extension (aka PowerShell IDE) using optional `-includeide` switch7* Defaults to completely automated operation (if appropriate permissions are available)8* Automatically looks up latest version via git tags9* Automatic selection of appropriate install sub-script10* Configures software installs for repositories when repositories are in place, otherwise pulls files from git releases.  As repository versions are made available, script will be updated to take advantage.11* User permission checking12* Sub-installers called from local file system if they exist, otherwise pulled from git13* Sub-installers can be called directly if auto-selection is not needed14 15## Minimum Requirements for install-powershell.sh16 17* bash shell18* `sed`19* native package manager available20* `curl` (auto-installed if missing)21* `tr`22 23## Parameters24 25* -includeide - installs VSCode and VSCode PowerShell extension (only relevant to machines with a desktop environment)26* -interactivetesting - do a quick launch test of VSCode (only relevant when used with -includeide)27* -skip-sudo-check - use sudo without verifying its availability (hard to accurately do on some distros)28* -preview - installs the latest preview release of PowerShell core side-by-side with any existing production releases29 30## Usage31 32### Direct from Github33 34```bash35bash <(wget -O - https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh) <ARGUMENTS>36 37wget -O - https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh | bash -s <ARGUMENTS>38```39 40### Local Copy41 42```bash43bash install-powershell.sh <ARGUMENTS>44```45 46## Examples47 48### Only Install PowerShell Core49 50```bash51bash <(wget -O - https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh)52```53 54### Install PowerShell Core with IDE55 56```bash57bash <(wget -O - https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh) -includeide58```59 60### Install PowerShell Core with IDE and do tests that require a human to interact with the installation process61 62```bash63bash <(wget -O - https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh) -includeide -interactivetesting64```65 66### Installation To do list67 68* Detect and wait when package manager is busy/locked? - at least Ubuntu (CentOS does this internally)69