From 1637bf21f721044ba48a2eeed35235ca7271951b Mon Sep 17 00:00:00 2001 From: Luna Komorebi Date: Wed, 8 Nov 2023 01:27:12 +0100 Subject: [PATCH] Remove lazy shell function for 'kubectl'. --- .zsh/lazy.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .zsh/lazy.sh diff --git a/.zsh/lazy.sh b/.zsh/lazy.sh deleted file mode 100644 index 5166a1f..0000000 --- a/.zsh/lazy.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env zsh - -# Check if 'kubectl' is a command in $PATH -if [ $commands[kubectl] ]; then - - # Placeholder 'kubectl' shell function: - # Will only be executed on the first call to 'kubectl' - kubectl() { - - # Remove this function, subsequent calls will execute 'kubectl' directly - unfunction "$0" - - # Load auto-completion - source <(kubectl completion zsh) - - # Execute 'kubectl' binary - $0 "$@" - } -fi