Changeset f5a51db for tools/auto-complete.md
- Timestamp:
- Feb 8, 2022, 11:53:13 AM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- cc7bbe6
- Parents:
- 97c215f (diff), 1cf8a9f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
tools/auto-complete.md (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tools/auto-complete.md
r97c215f rf5a51db 32 32 33 33 ### Zsh 34 35 1 - Add the following somewhere: 36 #compdef test.py 37 38 _test_py() { 39 local -a options 40 options=$($words[1] --list-comp) 41 _alternative "files:filenames:($options)" 42 } 43 44 _test_py "$@" 45 46 2 - Add the path to that file to the "fpath" environment variable. 47 48 3 - In ~/.zshrc add 49 autoload -U compinit 50 compinit 51 52 *How it works:* I don't know ;P 53 54
Note:
See TracChangeset
for help on using the changeset viewer.