Last active
March 28, 2024 02:42
-
-
Save maddouri/b541087fbb8353ae39f882848f326ede to your computer and use it in GitHub Desktop.
WSL alternative to the Linux notify-send command implemented as a Bash function that uses the Windows msg.exe command
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
# Usage Examples: | |
# wsl-msg hello world | |
# ./some_script && wsl-msg "Task Done" | |
wsl-msg() { | |
tput bel | |
# C:\Windows\System32\msg.exe from Windows 10 Pro | |
msg.exe '*' /V /W "$@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment