jp: zsh completion, first draft (added in a new /misc directory):
- completion automatically parse jp --help for the subcommand being completed to find optional and mandatory arguments
- profiles are asked to jp himself (through jp profile list)
- complete jp and jp_dev
This commit is contained in:
parent
7ca3c657f4
commit
2fcf405370
1 changed files with 153 additions and 0 deletions
12
misc/README
Normal file
12
misc/README
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
This directory contains files related to SàT but not directly used by it.
|
||||
|
||||
* file _jp:
|
||||
This is the completion file for zsh. To use it, you need to have it in a path accessible in your fpath variable, and to have completion activated. This can be done by the following commands in your .zshrc:
|
||||
|
||||
### .zshrc completion ###
|
||||
fpath=(/path/to/directory/with/_jp/ $fpath)
|
||||
autoload -U compinit
|
||||
compinit
|
||||
### end of .zshrc completion ###
|
||||
|
||||
Then, you should be able to complete a jp command line by pressing [TAB].
|
||||
Loading…
Reference in a new issue