useful wsl toast script

master
Andrew Coleman 2019-08-06 13:04:46 -04:00
parent 1317a82eaf
commit 1fba28c6b7
1 changed files with 8 additions and 0 deletions

8
bin/toast.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# must install BurntToast in PowerShell in Windows as Administrator
# Install-Module -Name BurntToast
SCRIPT="
Import-Module BurntToast ;
New-BurntToastNotification -text '$1', '$2'
"
echo $SCRIPT | powershell.exe -ExecutionPolicy Unrestricted -Command -