# Step 1: Add PowerShell to PATH (current session and future sessions)
export PATH="/c/Windows/System32/WindowsPowerShell/v1.0:$PATH"
echo 'export PATH="/c/Windows/System32/WindowsPowerShell/v1.0:$PATH"' >> ~/.bashrc
# Step 2: Reload bash configuration to ensure PATH changes take effect
source ~/.bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Windows Toast Notification Installer | |
| # This script sets up toast notifications for Windows using the BurntToast module | |
| # Usage: Run this script in PowerShell as Administrator (recommended) or current user | |
| param( | |
| [switch]$Unattended = $false | |
| ) | |
| # Function to write colored output | |
| function Write-ColorOutput($ForegroundColor) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Windows Toast Notification Uninstaller | |
| # This script removes toast notification setup from Windows | |
| # Usage: Run this script in PowerShell | |
| param( | |
| [switch]$Force = $false | |
| ) | |
| # Function to write colored output | |
| function Write-ColorOutput($ForegroundColor) { |
This test script provides automated testing for the Windows Toast Notification system in WSL environments. It performs a complete uninstall and reinstall cycle to verify that all components are working correctly.
The test script (test_toast_install.sh) automates the complete lifecycle testing of toast notifications by:
- Uninstalling existing components - Removes both WSL and Windows toast components
- Reinstalling fresh components - Downloads and installs the latest versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Test script for toast notification installation | |
| # This script uninstalls and reinstalls both Windows and WSL toast components | |
| set -euo pipefail | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # macOS Toast Notification Uninstaller | |
| # This script removes the toast() function from macOS shell configurations | |
| # Usage: bash macos_toast_uninstall.sh | |
| set -euo pipefail | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # macOS Toast Notification Installer | |
| # This script installs a toast() function for macOS using native AppleScript | |
| # Usage: bash macos_toast_install.sh | |
| set -euo pipefail | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # WSL Toast Notification Uninstaller | |
| # This script removes the toast() function from WSL shell configurations | |
| # Usage: bash wsl_toast_uninstall.sh | |
| set -euo pipefail | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Windows Toast Notifications - Bash Installation Script for WSL | |
| # WSL Toast Notification Installer | |
| # This script installs a toast() function for WSL that triggers Windows notifications | |
| # Uses C:\ProgramData\Toast\ for system-wide installation - no user detection needed | |
| set -euo pipefail | |
| # Colors for output | |
| RED='\033[0;31m' |
NewerOlder