GithubHelp home page GithubHelp logo

radiusmethod / kxd Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 1.0 176 KB

Kubeconfig file switcher

License: MIT License

Makefile 6.17% Go 92.28% Shell 1.56%
cli go kubeconfig kubeconfig-manager kubernetes tools

kxd's People

Contributors

danielshiplett avatar dgershman avatar pjaudiomv avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

danielshiplett

kxd's Issues

OhMyZSH + p10k Prompt Info

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.

Scroll wraparound.

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).

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.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
gomod
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

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.