Blame view

tests/.zshenv 812 Bytes
d91893a12   Shrikant Sharat   Initial stuff. Th...
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   Shrikant Sharat   Trying to get tes...
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   Shrikant Sharat   Fix #9 Add test f...
11
  export ADOTDIR="$PWD/dot-antigen"
d91893a12   Shrikant Sharat   Initial stuff. Th...
12
13
14
15
  
  rm "$TESTDIR/.zcompdump"
  
  source "$TESTDIR/../antigen.zsh"
e97637cd0   Shrikant Sharat   Moved common code...
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  
  # A test plugin repository to test out antigen with.
  
  mkdir test-plugin
  
  # A wrapper function over `git` to work with the test plugin repo.
  pg () {
      git --git-dir test-plugin/.git --work-tree test-plugin "$@"
  }
  
  cat > test-plugin/aliases.zsh <<EOF
  alias hehe='echo hehe'
  EOF
  
  {
      pg init
      pg add .
      pg commit -m 'Initial commit'
  } > /dev/null