Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 584 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 584 Bytes

Bash4PowerShell

Trying to mimic standard Bash functionalities, for PowerShell.

Dependencies

  • Python >= 3.9
  • PowerShell >= 5.1

Installing

$folder="C:\Users\$env:username\Documents\WindowsPowerShell"
git clone https://github.com/SuperFola/Bash4PowerShell.git $folder\Bash4PowerShell

$uri="https://raw.githubusercontent.com/SuperFola/Bash4PowerShell/master/PowerShell_profile.ps1"
$content=(Invoke-webrequest -URI $uri).Content

if(!(Test-Path -Path $profile)) {
    New-Item -Path $profile -ItemType "file" -Force
}
Add-Content -Path $profile -Value $content