1Load the theme explicitly.
2
3  $ antigen-theme $PLUGIN_DIR silly &> /dev/null
4  $ echo "$PS1"
5  prompt>
6
7  $ antigen-theme $PLUGIN_DIR wrong
8  Antigen: Failed to load theme.
9  [1]
10
11Theme should be listed correctly in antigen-list.
12
13  $ antigen-list | wc -l
14  1
15
16Should be registered correctly in BUNDLE_RECORD.
17
18  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme | wc -l
19  1
20
21  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme
22  *silly.zsh-theme* (glob)
23
24Load a second theme in the same session.
25
26  $ antigen-theme $PLUGIN_DIR arrow &> /dev/null
27  $ echo "$PS1"
28  >
29
30Second theme is listed as expected in antigen-list.
31
32  $ antigen-list | wc -l
33  1
34
35  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme
36  *arrow* (glob)
37
38Should be registered correctly in BUNDLE_RECORD.
39
40  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme | wc -l
41  1
42
43  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme
44  *arrow.zsh-theme* (glob)
45
46Using the same theme does not change anything.
47
48  $ antigen-theme $PLUGIN_DIR arrow
49  $ antigen-list --long
50  *arrow* (glob)
51
52  $ antigen-theme $PLUGIN_DIR arrow &> /dev/null
53  $ antigen-list --long | grep arrow
54  *arrow* (glob)
55
56Can load a theme without specifying a theme name:
57
58  $ antigen-theme $PLUGIN_DIR
59  $ antigen-list --long | grep arrow
60  *arrow* (glob)
61
62Do not change current directory.
63
64  $ cd /tmp/
65  $ antigen-theme $PLUGIN_DIR
66  $ antigen-list --long | grep arrow
67  *arrow* (glob)
68  $ pwd
69  /tmp
70
71Do not provide a default theme name value.
72
73  $ antigen-theme
74  Antigen: Must provide a theme url or name.
75  [1]
76