Add the function somewhere to your dotfiles. Works better if you npm install -g benny-hill
first.
Last active
April 1, 2022 05:54
-
-
Save bdougherty/94150da8559cd4d7998a537b381cd00c to your computer and use it in GitHub Desktop.
Play the Benny Hill theme song while installing npm modules
This file contains 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
function npm() { | |
if [[ "$1" == "i" ]] || [[ "$1" == "install" ]]; then | |
npx benny-hill npm "$@" | |
return | |
fi | |
command npm "$@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment