zsh-nvm/tests/common.sh

14 lines
225 B
Bash
Raw Permalink Normal View History

#!/bin/sh
export test_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
export repo_dir="$test_dir/.."
2016-10-22 00:47:06 +08:00
export NVM_DIR="$test_dir/.nvm"
die () {
echo $@
exit 1
}
load_zsh_nvm() {
source "$repo_dir/zsh-nvm.plugin.zsh"
}