Created
November 9, 2023 21:21
-
-
Save hardyoyo/b3984ae27fd81099eba6f508c195fc68 to your computer and use it in GitHub Desktop.
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
# Bash function to have Docker-Compose send a notification upon completion, because it can take a while | |
# "cheers" -> https://bigsoundbank.com/sound-0237-shouts-and-applauses-of-teens-2.html | |
# only works on a Mac, you'd have to revise it for other operating systems | |
docker-compose() { | |
local cmd="docker-compose $@" | |
command $cmd && osascript -e 'display notification "$cmd" with title "Docker-Compose Done" sound name "cheers"' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You park this in a Bash config file, near where you have your aliases. It works just like an alias, and sends a notification when the docker-compose command completes.