Blame view
tests/.zshenv
642 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. |
|
e0d9ad45a
|
4 |
export ADOTDIR="$PWD/dot-antigen" |
|
d91893a12
|
5 6 7 8 |
rm "$TESTDIR/.zcompdump" source "$TESTDIR/../antigen.zsh" |
|
e97637cd0
|
9 10 |
# A test plugin repository to test out antigen with. |
|
293eecb90
|
11 12 |
export PLUGIN_DIR="$PWD/test-plugin" mkdir "$PLUGIN_DIR" |
|
e97637cd0
|
13 14 15 |
# A wrapper function over `git` to work with the test plugin repo.
pg () {
|
|
293eecb90
|
16 |
git --git-dir "$PLUGIN_DIR"/.git --work-tree "$PLUGIN_DIR" "$@" |
|
e97637cd0
|
17 |
} |
|
293eecb90
|
18 |
cat > "$PLUGIN_DIR"/aliases.zsh <<EOF |
|
e97637cd0
|
19 20 21 22 23 24 25 26 |
alias hehe='echo hehe'
EOF
{
pg init
pg add .
pg commit -m 'Initial commit'
} > /dev/null
|