Skip to content

Instantly share code, notes, and snippets.

@maddouri
Last active March 28, 2024 02:42
Show Gist options
  • Save maddouri/b541087fbb8353ae39f882848f326ede to your computer and use it in GitHub Desktop.
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
# 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