radiusmethod / kxd Goto Github PK
View Code? Open in Web Editor NEWKubeconfig file switcher
License: MIT License
Kubeconfig file switcher
License: MIT License
I'm not sure if anyone is looking for this or if you would like to add this to the README, but here is the p10k prompt segment that can be added to a users ~/.p10k.zsh
file:
# kxd prompts
typeset -g _kxd_config
typeset -g _kxd_basename=''
typeset -g _kxd_content="kx:(${_kxd_basename})"
function prompt_kxd() {
local _kxd_config="${KUBECONFIG:=}"
if [ -z "$_kxd_config" ]
then
_kxd_basename=''
else
_kxd_basename="%F{cyan}$(basename $_kxd_config)%f"
fi
_kxd_content="kx:(${_kxd_basename})"
p10k segment -b 0 -f 4 -t ${_kxd_content}
}
function instant_prompt_kxd() {
p10k segment -b 0 -f 4 -t ${_kxd_content}
}
Then simply add kxd
to either the left or right segment lists.
The output mirrors the content you described in the zsh theme section.
It would be cool if you were at the top of the list and press up it wrapped around to the bottom of the list (and vise-versa).
kxd is cool, but it would be cooler if you could also change contexts within each file.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
k8s.io/apimachinery
, k8s.io/client-go
).github/workflows/pull-request.yml
actions/checkout v4
actions/setup-go v5
golangci/golangci-lint-action v6
ubuntu 22.04
.github/workflows/release.yml
actions/checkout v4
actions/setup-go v5
golangci/golangci-lint-action v6
actions/checkout v4
ncipollo/release-action v1.14.0
ubuntu 22.04
ubuntu 22.04
go.mod
go 1.22.0
go 1.22.4
github.com/manifoldco/promptui v0.9.0
github.com/spf13/cobra v1.8.0
k8s.io/apimachinery v0.30.1
k8s.io/client-go v0.30.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.