shadow npm command with function.

use yarn instead
This commit is contained in:
Ray Elliott 2020-03-30 13:07:12 +01:00
parent 94212a12b3
commit 978454d904
1 changed files with 6 additions and 0 deletions

View File

@ -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'"
}