Lets is a cli tool for developers that is a better alternative to make - https://github.com/lets-cli/lets
oh-my-zsh
Just clone plugin to oh-my-zsh plugins directory
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/lets-cli/lets-zsh-plugin.git letsOpen ~/.zshrc and add lets to plugins
plugins=(lets)zinit
Add to your ~/.zshrc
zinit load lets-cli/lets-zsh-pluginYou can set up completions manually (no plugins).
Usually to make completion works you have to make sure that:
- A file with completions exists
- A path to directory with a file with completions is in
$fpathenv.
lets can generate completions script for you
lets completion -s zshThis will print completion script, and you have to save it somewhere, for example:
lets completion -s zsh ~/.my-completions/_letsNow, add ~/.my-completions/_lets to fpath
fpath=(~/.my-completions $fpath)And just to be sure that everything will work as expected fine, rebuild zcompdump:
rm -f ~/.zcompdump; compinitDo not forget to add autoload call to the end of file (it actually can be after plugins section, but its better to add it to the end of
~/.zshrc)
autoload -U compinit && compinitRestart terminal
exec $SHELL -lSince zinit adds ~/.local/share/zinit/completions to fpath, you just need to put completions to that directory:
lets completion -s zsh > ~/.local/share/zinit/completions/_letsFor oh-my-zsh these are usually one of the following directories in fpath:
- ~/.oh-my-zsh/completions
- ~/.zsh/completions
lets completion -s zsh > ~/.oh-my-zsh/completions/_lets.zshYou can just add source <(lets completion -s zsh) to your ~/.zshrc file, save it and reload shell. Completions should work.
If completions does not work, try to put source <(lets completion -s zsh) after line with autoload -U compinit && compinit, like this:
autoload -U compinit && compinit
source <(lets completion -s zsh)For zsh there is --verbose flag which generate completions with descriptions, like this:
lets <tab>
... generated completions
build -- Build my app
run -- Run my app
test -- Test my applets completion -s zsh --verbose