From 978454d904cba1a7fcda1d4681adceb013a28077 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 30 Mar 2020 13:07:12 +0100 Subject: [PATCH] shadow npm command with function. use yarn instead --- aliases.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aliases.sh b/aliases.sh index ee6403d..459ec91 100644 --- a/aliases.sh +++ b/aliases.sh @@ -78,3 +78,9 @@ ytdl-ct() { ytdl-ct-audio() { ssh "youtube-dl@192.168.0.118 'screen -m -d ./download.sh --config-location ~/.config/youtube-dl/config-audio-only $1'" } + +alias npm_real=$(command -v npm) +function npm { + echo "Please use Yarn instead!!" + echo " If you must use npm use: 'npm_real'" +}