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

A set of alias to mimic Bash, but with PowerShell

License

Notifications You must be signed in to change notification settings

SuperFola/Bash4PowerShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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