about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx')
-rwxr-xr-xsubx/edit15
1 files changed, 15 insertions, 0 deletions
diff --git a/subx/edit b/subx/edit
new file mode 100755
index 00000000..03a2c284
--- /dev/null
+++ b/subx/edit
@@ -0,0 +1,15 @@
+#!/usr/bin/env zsh
+# Open a specific example.
+
+if [ $# -eq 0 ]
+then
+  echo "edit <file>"
+  exit 1
+fi
+
+if [[ $1 == 'ex'* ]]
+then
+  eval $EDITOR examples/$1.subx
+else
+  eval $EDITOR apps/$1.subx
+fi
06d83da1c5'>^
9cbd4199 ^
1fca8ee1 ^
ec32c11d ^
1fca8ee1 ^
9cbd4199 ^
dc5a0acf ^

9cbd4199 ^


52e3ea8a ^
3350c34a ^
d3a9db3a ^
9cbd4199 ^



1fca8ee1 ^
9cbd4199 ^




























762107fd ^
9cbd4199 ^

de8a15e9 ^














52e3ea8a ^
de8a15e9 ^







9cbd4199 ^



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
76
77
78
79
80
81
82
83
84
85