jonmosco / kube-ps1

Kubernetes prompt info for bash and zsh
Apache License 2.0
3.52k stars 351 forks source link

feat: it'd be cool if kube-ps1 could turn on/off if the pwd has .yaml or other k8s associated files in it #147

Closed snickell closed 2 years ago

snickell commented 2 years ago

This would automatically hide the prompt in most folders on a system, and show it when in a "kubernetes related directory"

jonmosco commented 2 years ago

This can prob be done with a shell function. The prompt can be turned on and off with the kube-off and kube-on functions, but keeping it available no matter the directory is essential to some workflows (and the way I use it). Thank you for using the project!