@@ -12,87 +12,3 @@ Installation Guide
12
12
=== "From binary"
13
13
14
14
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
- ```
0 commit comments