zsh-nvm/tests/common.sh
2016-10-25 10:28:14 +01:00

14 lines
225 B
Bash

#!/bin/sh
export test_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
export repo_dir="$test_dir/.."
export NVM_DIR="$test_dir/.nvm"
die () {
echo $@
exit 1
}
load_zsh_nvm() {
source "$repo_dir/zsh-nvm.plugin.zsh"
}