Skip to content

Commit 30ec314

Browse files
committed
fix: remove deprecated completion
1 parent bc172b1 commit 30ec314

File tree

3 files changed

+7
-96
lines changed

3 files changed

+7
-96
lines changed

.github/workflows/docs.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: Publish docs
3-
on: # yamllint disable-line rule:truthy
4-
workflow_dispatch:
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths:
7+
- "cmd/docgen.go"
8+
- "**.md"
59
push:
6-
branches: ['docs*']
7-
tags: ['v*']
8-
9-
permissions:
10-
contents: read
10+
branches: [main]
1111

1212
jobs:
1313
publish-docs:

docs/install.md

-84
Original file line numberDiff line numberDiff line change
@@ -12,87 +12,3 @@ Installation Guide
1212
=== "From binary"
1313

1414
Binaries are available to download from the [GitHub releases](https://github.com/radiofrance/dib/releases) page.
15-
16-
## Shell autocompletion
17-
18-
Configure your shell to load dib completions:
19-
20-
=== "Bash"
21-
22-
To load completion run:
23-
24-
```shell
25-
. <(dib completion bash)
26-
```
27-
28-
To configure your bash shell to load completions for each session add to your bashrc:
29-
30-
```shell
31-
# ~/.bashrc or ~/.bash_profile
32-
command -v dib >/dev/null && . <(dib completion bash)
33-
```
34-
35-
If you have an alias for dib, you can extend shell completion to work with that alias:
36-
37-
```shell
38-
# ~/.bashrc or ~/.bash_profile
39-
alias tm=dib
40-
complete -F __start_dib tm
41-
```
42-
43-
=== "Fish"
44-
45-
To configure your fish shell to [load completions](http://fishshell.com/docs/current/index.html#completion-own)
46-
for each session write this script to your completions dir:
47-
48-
```shell
49-
dib completion fish > ~/.config/fish/completions/dib.fish
50-
```
51-
52-
=== "Powershell"
53-
54-
To load completion run:
55-
56-
```shell
57-
. <(dib completion powershell)
58-
```
59-
60-
To configure your powershell shell to load completions for each session add to your powershell profile:
61-
62-
Windows:
63-
64-
```shell
65-
cd "$env:USERPROFILE\Documents\WindowsPowerShell\Modules"
66-
dib completion >> dib-completion.ps1
67-
```
68-
Linux:
69-
70-
```shell
71-
cd "${XDG_CONFIG_HOME:-"$HOME/.config/"}/powershell/modules"
72-
dib completion >> dib-completions.ps1
73-
```
74-
75-
=== "Zsh"
76-
77-
To load completion run:
78-
79-
```shell
80-
. <(dib completion zsh) && compdef _dib dib
81-
```
82-
83-
To configure your zsh shell to load completions for each session add to your zshrc:
84-
85-
```shell
86-
# ~/.zshrc or ~/.profile
87-
command -v dib >/dev/null && . <(dib completion zsh) && compdef _dib dib
88-
```
89-
90-
or write a cached file in one of the completion directories in your ${fpath}:
91-
92-
```shell
93-
echo "${fpath// /\n}" | grep -i completion
94-
dib completion zsh > _dib
95-
96-
mv _dib ~/.oh-my-zsh/completions # oh-my-zsh
97-
mv _dib ~/.zprezto/modules/completion/external/src/ # zprezto
98-
```

mkdocs.yml

-5
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ nav:
7171
- Build: cmd/dib_build.md
7272
- List: cmd/dib_list.md
7373
- Version: cmd/dib_version.md
74-
- Completion:
75-
- Bash: cmd/dib_completion_bash.md
76-
- Fish: cmd/dib_completion_fish.md
77-
- Powershell: cmd/dib_completion_powershell.md
78-
- ZSH: cmd/dib_completion_zsh.md
7974
- Development:
8075
- Documentation: documentation.md
8176
- Roadmap: roadmap.md

0 commit comments

Comments
 (0)