按以前学过的|
管道符号,我以为wget
下载并且执行是这样的。
wget http://www.xxx.com/hello.sh | sh
发现不行,后来我想起来每次安装oh-my-zsh
的时候就是下载并且执行一条命令搞定。
via curl
curl https://raw.githubusercontent.com/creationix/nvm/v0.8.0/install.sh | sh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
via wget
wget https://raw.githubusercontent.com/creationix/nvm/v0.8.0/install.sh -O - | sh
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"