Kubernetes context
kubernetes-context
kubernetes-context
Displays the current Kubernetes context, including cluster, user, and namespace information. Supports AWS EKS ARN parsing.Default display:With With With
Basic configuration
Requirements
This widget requires
kubectl to be installed and a valid kubeconfig file.Options
Label displayed before the context information.
Hide the user from the context string.
Hide ARN prefix for EKS clusters, showing only the cluster name. Only works when cluster names are ARNs.
Extract and display the AWS account ID as a prefix to the cluster name. Only works when cluster names are ARNs.
Update interval in seconds.
Display format
The widget displays information in the format:account/- Only shown wheneks-extract-accountis enableduser@- Hidden whenhide-useris enabled:namespace- Only shown when a namespace is set in the context
Usage examples
EKS examples
For an EKS cluster with ARN:eks-hide-arn:eks-extract-account and eks-hide-arn:hide-user, eks-extract-account, and eks-hide-arn:Terraform workspace
terraform
terraform
Displays the current Terraform workspace.
Basic configuration
Requirements
This widget requires Terraform to be installed and the current directory to be a Terraform project.
Options
Label displayed before the workspace name.
Update interval in seconds.
Usage examples
Behavior
The widget displays the current Terraform workspace name (e.g., “default”, “staging”, “production”). It only shows information when:- The current tmux pane’s working directory contains a Terraform project
- Terraform is properly initialized (
.terraformdirectory exists)