zsh: command not found: gulp -
i've installed zsh homebrew , changed shell it. i'm having problem when trying run gulp
command, worked before changed shell zsh.
zsh: command not found: gulp
a bit of research leaves me believe has path. path looks .zshrc
file.
export path="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
i want installed node brew. how can use gulp zsh without changing default shell?
any appreciated. in advance!
there no need - , bad idea - set path
literal value in ~/.zshrc
. in doing so, may remove directories have been added path
.
in case, worked shell, first try remove line set path
zsh should inherit path
own parent environment.
if not add path containing gulp
(probably because added in configuration of old shell), can add
path=$home/.node/bin:$path
to ~/.zshrc
.
note: path
part of environment, there no need export again.
generally, if want add path
can use:
path="/something/new/bin:$path"
this prepends /something/new/bin
path
if want remove path
should trick:
path=${${path//\/something\/old\/bin/}//::/:}
this removes occurences of /something/old/bin
(slashes need escaped) path
, removes duplicate colons.