Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
a56b5a8e
Commit
a56b5a8e
authored
2 years ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
add zsh autocomplete
parent
c8ba5f65
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/user/autocompletion.md
+14
-0
14 additions, 0 deletions
docs/user/autocompletion.md
with
14 additions
and
0 deletions
docs/user/autocompletion.md
+
14
−
0
View file @
a56b5a8e
...
@@ -30,3 +30,17 @@ Or you can automatically source it at `bash` startup by adding this to your `~/.
...
@@ -30,3 +30,17 @@ Or you can automatically source it at `bash` startup by adding this to your `~/.
```
```
You can now enjoy semantic completion of the
`./target/release/duniter`
command using
`<Tab>`
key.
You can now enjoy semantic completion of the
`./target/release/duniter`
command using
`<Tab>`
key.
## Zsh
Zsh equivalent
```
sh
# make directory to store completion
mkdir
-p
~/.zsh/completion
# write the completion script
cargo run
--release
--
completion
--generator
zsh
>
~/.zsh/completion/_duniter.zsh
# add the following lines to your ~/.zshrc
fpath+
=(
~/.zsh/completion
)
compinit
# might slow down terminal startup
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment