blob: 195d29a5f47b5f43d433219b4d6ba43df93f3ca1 (
plain)
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
|
# Fish Completion
The `ask` task-management CLI embeds its Fish completion script in the binary and prints it with `ask fish`.
It completes the top-level `ask` subcommands and the nested `ask dep` operations.
It also completes task UUIDs for UUID-taking commands by reading the current project from `ask all --json` and filtering out completed and deleted tasks.
The script preserves the global `--json` flag.
Load it into the current Fish session:
```sh
ask fish | source
```
If you installed with `mage install` and `~/go/bin` is not on your `PATH` yet, use:
```sh
~/go/bin/ask fish | source
```
To enable it automatically for new Fish sessions, add this to your Fish config or a file in `~/.config/fish/conf.d/`:
```fish
set -l ask_bin ~/go/bin/ask
if test -x $ask_bin
$ask_bin fish | source
end
```
No external `ask.fish` file is required.
|