From 5cc062019698445652e898147f90b6a331cc1cea Mon Sep 17 00:00:00 2001 From: tim Date: Sat, 2 Apr 2016 11:14:17 +0100 Subject: [PATCH] Add Sudo option to npm -g --- plugins/npm/npm.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index 38e699ea..f7c03664 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -2,6 +2,7 @@ eval "$(npm completion 2>/dev/null)" # Install dependencies globally alias npmg="npm i -g " +alias snpmg="sudo npm i -g " # npm package names are lowercase # Thus, we've used camelCase for the following aliases: