Browse Source

Add install script

pull/5/head
Luke Childs 9 years ago
parent
commit
4f10e63798
  1. 6
      zsh-nvm.plugin.zsh

6
zsh-nvm.plugin.zsh

@ -19,3 +19,9 @@ _zsh_nvm_latest_release_tag() {
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
_zsh_nvm_install() {
git clone https://github.com/creationix/nvm.git "$NVM_DIR"
cd "$NVM_DIR"
git checkout --quiet "$(_zsh_nvm_latest_release_tag)"
}

Loading…
Cancel
Save