elm.plugin.zsh
August 15, 2022 ยท View on GitHub
zsh plugin for completion of options and list of packages for elm.
Installation
Oh My ZSH! custom plugin
Clone elm.plugin.zsh into your custom plugins repo and load as a plugin in your .zshrc
git clone https://github.com/kraklin/elm.plugin.zsh.git ~/.oh-my-zsh/custom/plugins/elm
plugins+=(elm)
Keep in mind that plugins need to be added before oh-my-zsh.sh is sourced.
Antigen
Bundle elm.plugin.zsh in your .zshrc
antigen bundle kraklin/elm.plugin.zsh
zplug
Load elm.plugin.zsh as a plugin in your .zshrc
zplug "kraklin/elm.plugin.zsh"
zgen
Include the load command in your .zshrc
zget load kraklin/elm.plugin.zsh
Manually
Clone this repository somewhere (~/.elm.plugin.zsh for example) and source it in your .zshrc
git clone https://github.com/kraklin/elm.plugin.zsh ~/.elm.plugin.zsh
source ~/.elm.plugin.zsh/elm.plugin.zsh
Usage
This plugin autocompletes the option of elm app. Just use tabs.
Autocompletion of packages
To autocompletion for packages to work, you have to get the list of package names.
There is a function in this plugin for it: elm-completion-update.
# Get fresh pacckages names from package.elm-lang.org
elm-completion-update
Now you should be able to run autocompletion for elm install and elm diff packages