all repos — nixfiles @ 73c3dc3c77b69da6444bfa198b77b60dd1edc874

System and user configuration, managed by nix and home-manager

zsh: Add lunchy completion if installed

Alan Pearce
commit

73c3dc3c77b69da6444bfa198b77b60dd1edc874

parent

b9b86fcefd2bd47d8b42a7f48af4f4c1ea9f72d9

1 file changed, 8 insertions(+), 0 deletions(-)

jump to
M tag-zsh/config/zsh/zshrctag-zsh/config/zsh/zshrc
@@ -124,6 +124,14 @@ then
autoload -U compinit && compinit fi +if [[ -n $commands[lunchy] ]] +then + LUNCHY_DIR=$(dirname $(gem which lunchy))/../extras + if [ -f $LUNCHY_DIR/lunchy-completion.zsh ]; then + . $LUNCHY_DIR/lunchy-completion.zsh + fi +fi + if [[ $TERM == "dumb" ]] then PROMPT="> "