Skip to content

Commit 57e7e61

Browse files
authored
Merge pull request #21 from b4b4r07/feature/release-path-template
Add release.asset field to github configuration
2 parents 9ad8f19 + 732c754 commit 57e7e61

File tree

8 files changed

+608
-111
lines changed

8 files changed

+608
-111
lines changed

docs/configuration/command.md

+26-14
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ list | yes (when using `build`)
1616

1717
```yaml hl_lines="7 8 9 10" title="Using sudo"
1818
github:
19-
- name: fzy
19+
- name: jhawthorn/fzy
2020
description: A better fuzzy finder
2121
owner: jhawthorn
2222
repo: fzy
@@ -33,7 +33,7 @@ list | yes (when using `build`)
3333

3434
```yaml hl_lines="7 8 9" title="Using go build"
3535
github:
36-
- name: kubectl-trace
36+
- name: iovisor/kubectl-trace
3737
description: Schedule bpftrace programs on your kubernetes cluster using the kubectl
3838
owner: iovisor
3939
repo: kubectl-trace
@@ -62,7 +62,7 @@ map | no
6262

6363
```yaml hl_lines="11 12"
6464
github:
65-
- name: fzy
65+
- name: jhawthorn/fzy
6666
description: A better fuzzy finder
6767
owner: jhawthorn
6868
repo: fzy
@@ -89,7 +89,7 @@ string | yes (when using `link`)
8989

9090
```yaml hl_lines="7 8" title="Just install from current directory"
9191
github:
92-
- name: diff-so-fancy
92+
- name: so-fancy/diff-so-fancy
9393
description: Good-lookin' diffs. Actually… nah… The best-lookin' diffs.
9494
owner: so-fancy
9595
repo: diff-so-fancy
@@ -104,7 +104,7 @@ string | yes (when using `link`)
104104

105105
```yaml hl_lines="10 11 12" title="Case of including version string etc in file name"
106106
github:
107-
- name: jq
107+
- name: stedolan/jq
108108
description: Command-line JSON processor
109109
owner: stedolan
110110
repo: jq
@@ -131,7 +131,7 @@ string | no
131131

132132
```yaml hl_lines="7 8 9" title="Simple case, with renaming by using `to` field"
133133
github:
134-
- name: prok
134+
- name: mutantcornholio/prok
135135
description: easy process grep with ps output
136136
owner: mutantcornholio
137137
repo: prok
@@ -149,7 +149,7 @@ string | no
149149

150150
```yaml hl_lines="7 8 9" title="from current working dir to external dir of afx"
151151
github:
152-
- name: tpm
152+
- name: tmux-plugins/tpm
153153
description: Tmux Plugin Manager
154154
owner: tmux-plugins
155155
repo: tpm
@@ -167,7 +167,7 @@ string | no
167167

168168
```yaml hl_lines="8 9 10 11" title="Several links"
169169
github:
170-
- name: kubectx
170+
- name: ahmetb/kubectx
171171
description: Switch faster between clusters and namespaces in kubectl
172172
owner: ahmetb
173173
repo: kubectx
@@ -201,7 +201,7 @@ map | no
201201

202202
```yaml hl_lines="12 13 14 15"
203203
github:
204-
- name: bat
204+
- name: sharkdp/bat
205205
description: A cat(1) clone with wings.
206206
owner: sharkdp
207207
repo: bat
@@ -231,7 +231,7 @@ map | no
231231

232232
```yaml hl_lines="7 8"
233233
github:
234-
- name: colordiff
234+
- name: daveewart/colordiff
235235
description: Primary development for colordiff
236236
owner: daveewart
237237
repo: colordiff
@@ -247,7 +247,7 @@ map | no
247247

248248
```yaml hl_lines="10 11 12 13 14 15"
249249
github:
250-
- name: exa
250+
- name: ogham/exa
251251
description: A modern version of 'ls'.
252252
owner: ogham
253253
repo: exa
@@ -270,7 +270,7 @@ map | no
270270

271271
```yaml hl_lines="10 11"
272272
github:
273-
- name: bat
273+
- name: sharkdp/bat
274274
description: A cat(1) clone with wings.
275275
owner: sharkdp
276276
repo: bat
@@ -300,7 +300,7 @@ string | no
300300

301301
```yaml hl_lines="10 11 12" title="Login message if tpm is installed"
302302
github:
303-
- name: tpm
303+
- name: tmux-plugins/tpm
304304
description: Tmux Plugin Manager
305305
owner: tmux-plugins
306306
repo: tpm
@@ -324,6 +324,8 @@ string | no
324324

325325
In `if` field, you can write shell scripts[^1]. The exit code finally returned from that shell script is used to determine whether it links command or not.
326326

327+
[^1]: You can configure your favorite shell to evaluate `if` field by setting `AFX_SHELL`.
328+
327329
=== "Case 1"
328330

329331
```yaml hl_lines="10 11" title="link commands if git is installed"
@@ -347,4 +349,14 @@ In `if` field, you can write shell scripts[^1]. The exit code finally returned f
347349
}
348350
```
349351

350-
[^1]: You can configure your favorite shell to evaluate `if` field by setting `AFX_SHELL`.
352+
!!! hint "Shell used for an evaluation of `if`"
353+
354+
Defaults to `bash`. But you can change it with setting `AFX_SHELL` (or `main.shell` block on afx configuration)[^2]
355+
356+
e.g.
357+
```
358+
export AFX_SHELL=zsh
359+
export AFX_SHELL=/bin/zsh
360+
```
361+
362+
[^2]: Not yet available. Coming soon.

0 commit comments

Comments
 (0)