[Markdown] Tools for working with agents.
1
#!
2
# Symlink every skill and steering module of this repo into ~/.kiro.
3
#
4
# The script is idempotent. A link that already points at this repo is
5
# left alone. A link that points elsewhere, or a real directory with the
6
# same name, is reported and skipped, so the script never overwrites work
7
# that this repo does not own.
8
#
9
# Usage:
10
# ./install.sh Install into ~/.kiro.
11
# KIRO_HOME=/x ./install.sh Install into /x instead.
12
#
13
# Exit status: 0 when every asset is linked, 1 when at least one was skipped.
14
15
set-eu
16
17
repo=$(CDPATH=cd--$(dirname--$0""
18
${KIRO_HOME:-"$HOME/.kiro"}
19
20
21
22
$1
23
$2
24
$1
25
$2
26
$(basename--$src"
27
"$kiro$type"
28
"$dest_dir$name"
29
30
"$dest_dir"
31
32
"$dest"
33
$(readlink--$dest"
34
"$target"$src"
35
"$dest"
36
37
"$dest$target"
38
39
40
"$dest"
41
"$dest"
42
43
44
"$src""$dest"
45
"$dest"
46
47
48
49
50
"$repo$type"
51
"$src"
52
$type""${src%/}"
53
54
55
56
"$status"
57