File: theme.t

package info (click to toggle)
zsh-antigen 2.2.3-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 608 kB
  • sloc: sh: 310; makefile: 129
file content (75 lines) | stat: -rw-r--r-- 1,558 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Load the theme explicitly.

  $ antigen-theme $PLUGIN_DIR silly &> /dev/null
  $ echo "$PS1"
  prompt>

  $ antigen-theme $PLUGIN_DIR wrong
  Antigen: Failed to load theme.
  [1]

Theme should be listed correctly in antigen-list.

  $ antigen-list | wc -l
  1

Should be registered correctly in BUNDLE_RECORD.

  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme | wc -l
  1

  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme
  *silly.zsh-theme* (glob)

Load a second theme in the same session.

  $ antigen-theme $PLUGIN_DIR arrow &> /dev/null
  $ echo "$PS1"
  >

Second theme is listed as expected in antigen-list.

  $ antigen-list | wc -l
  1

  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme
  *arrow* (glob)

Should be registered correctly in BUNDLE_RECORD.

  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme | wc -l
  1

  $ echo ${(j:\n:)_ANTIGEN_BUNDLE_RECORD} | grep theme
  *arrow.zsh-theme* (glob)

Using the same theme does not change anything.

  $ antigen-theme $PLUGIN_DIR arrow
  $ antigen-list --long
  *arrow* (glob)

  $ antigen-theme $PLUGIN_DIR arrow &> /dev/null
  $ antigen-list --long | grep arrow
  *arrow* (glob)

Can load a theme without specifying a theme name:

  $ antigen-theme $PLUGIN_DIR
  $ antigen-list --long | grep arrow
  *arrow* (glob)

Do not change current directory.

  $ cd /tmp/ 
  $ antigen-theme $PLUGIN_DIR
  $ antigen-list --long | grep arrow
  *arrow* (glob)
  $ pwd
  /tmp

Do not provide a default theme name value.

  $ antigen-theme
  Antigen: Must provide a theme url or name.
  [1]