File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ Most of the Meson commands listed below should work "out of the box" for those.
3030 - [ Argument overrides] ( #argument-overrides )
3131 - [ Advanced: adding arguments to built-in commands] ( #advanced-adding-arguments-to-built-in-commands )
3232 - [ Advanced: override Meson CLI] ( #advanced-override-meson-cli )
33+ - [ Auto-completion] ( #auto-completion )
3334- [ FAQ] ( #faq )
3435- [ For contributors] ( #for-contributors )
3536- [ History] ( #history )
@@ -245,6 +246,27 @@ Meson CLI can be set in `pyproject.toml`:
245246cli = 'path/to/custom/meson'
246247```
247248
249+ ## Auto-completion
250+
251+ To enable shell auto-completion, first install ` spin ` , then follow these instructions.
252+ The same instructions work for ZSH, just replace "bash" with "zsh".
253+
254+ 1 . Create a completions file:
255+
256+ ```
257+ _SPIN_COMPLETE=bash_source spin > ~/.spin-complete.bash
258+ ```
259+
260+ Ignore the "need valid configuration" error messages.
261+
262+ 2 . In your ` ~/.bashrc ` , add:
263+
264+ ```
265+ source ~/.spin-complete.bash
266+ ```
267+
268+ Auto-completions should now work in any spin-enabled project directory.
269+
248270## FAQ
249271
250272- Running ` spin ` , the emojis in the command list don't show up.
You can’t perform that action at this time.
0 commit comments