File: init.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 (26 lines) | stat: -rw-r--r-- 564 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
Can source an dot-antigenrc file:

  $ zcache-cache-exists () { false }
  $ source () { echo $1 }
  $ antigen-init $ANTIGEN/tests/.antigenrc
  .*/.antigenrc (re)

Returns error if non-existing file is given:

  $ zcache-cache-exists () { false }
  $ antigen-init /non-existing/file.zsh
  Antigen: invalid argument provided.
  [1]

Can handle heredocs:

  $ zcache-cache-exists () { false }
  $ antigen () { echo $@ }
  $ antigen-init <<EOB
  > antigen use library
  > antigen bundle bundle/name
  > antigen apply
  > EOB
  use library
  bundle bundle/name
  apply