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