Skip to content

Plugin for autocompletion of commands and packages for Elm

License

Notifications You must be signed in to change notification settings

kraklin/elm.plugin.zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

elm.plugin.zsh

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.

Bundle elm.plugin.zsh in your .zshrc

antigen bundle kraklin/elm.plugin.zsh

Load elm.plugin.zsh as a plugin in your .zshrc

zplug "kraklin/elm.plugin.zsh"

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

License

MIT

About

Plugin for autocompletion of commands and packages for Elm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages