Created
January 13, 2020 18:52
-
-
Save un-def/ee696955bf0fb85e7cf2fc32f26eaa34 to your computer and use it in GitHub Desktop.
ohmyzsh just autocompletion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef _just just | |
#autoload | |
_just() { | |
local -a subcmds | |
subcmds=($(just --summary)) 2> /dev/null || return 1 | |
_describe 'command' subcmds | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installing
_just
in$ZSH/custom/plugins/just/
just
to your plugin list in~/.zshrc
:just
, pressTab
, enjoy.Troubleshooting
Try to remove
~/.zcompdump
Based on completion script by @peterkc, see casey/just#223 (comment)