Blame view
tests/.zshenv
857 Bytes
|
d91893a12
|
1 2 3 |
# zshrc file written for antigen's tests. Might not be a good one for daily use. # See cram's documentation for some of the variables used below. |
|
968db0671
|
4 5 6 7 8 9 10 |
default_clone="/tmp/antigen-tests-clone-cache"
if [[ ! -d "$default_clone" ]]; then
git clone https://github.com/robbyrussell/oh-my-zsh.git "$default_clone"
fi
export ANTIGEN_DEFAULT_REPO_URL="$default_clone"
|
|
e0d9ad45a
|
11 |
export ADOTDIR="$PWD/dot-antigen" |
|
d91893a12
|
12 13 14 15 |
rm "$TESTDIR/.zcompdump" source "$TESTDIR/../antigen.zsh" |
|
e97637cd0
|
16 17 |
# A test plugin repository to test out antigen with. |
|
293eecb90
|
18 19 |
export PLUGIN_DIR="$PWD/test-plugin" mkdir "$PLUGIN_DIR" |
|
e97637cd0
|
20 21 22 |
# A wrapper function over `git` to work with the test plugin repo.
pg () {
|
|
293eecb90
|
23 |
git --git-dir "$PLUGIN_DIR"/.git --work-tree "$PLUGIN_DIR" "$@" |
|
e97637cd0
|
24 |
} |
|
293eecb90
|
25 |
cat > "$PLUGIN_DIR"/aliases.zsh <<EOF |
|
e97637cd0
|
26 27 28 29 30 31 32 33 |
alias hehe='echo hehe'
EOF
{
pg init
pg add .
pg commit -m 'Initial commit'
} > /dev/null
|