From 808023b9ad799c33be81157a01a2a2315cf68299 Mon Sep 17 00:00:00 2001 From: Luna Komorebi Date: Mon, 10 Jun 2024 12:22:29 +0200 Subject: [PATCH] add pulumi lazyload --- .zsh/lazy.zsh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.zsh/lazy.zsh b/.zsh/lazy.zsh index 5166a1f..d91246d 100644 --- a/.zsh/lazy.zsh +++ b/.zsh/lazy.zsh @@ -17,3 +17,18 @@ if [ $commands[kubectl] ]; then $0 "$@" } fi +if [ $commands[pulumi] ]; then + + # Placeholder 'kubectl' shell function: + # Will only be executed on the first call to 'kubectl' + pulumi() { + + # Remove this function, subsequent calls will execute 'kubectl' directly + unfunction "$0" + + # Load auto-completion + source <(pulumi gen-completion zsh) + + $0 "$@" + } +fi