Skip to content

Commit 11f146b

Browse files
committed
small script to run clipboard as bash
1 parent 5ce6326 commit 11f146b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

pbash.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<#
2+
.SYNOPSIS
3+
Runs whatever is on the clipboard as bash
4+
.DESCRIPTION
5+
Bash line continuation or custom syntax won't run in powershell...
6+
#>
7+
8+
$script:ErrorActionPreference = "Stop"
9+
Set-StrictMode -Version Latest
10+
11+
Get-Clipboard | bash

0 commit comments

Comments
 (0)