Skip to content

golgoth31/multiShellKonfig

Repository files navigation

multiShellKonfig

Freely inspired by konf-go

Install

Download the needed binary from the release page and save it as msk-bin somewhere in your $PATH.

curl -fsL -o msk-bin https://github.com/golgoth31/multiShellKonfig/releases/download/v0.0.4/msk-bin_v0.0.4_darwin_arm64
chmod +x msk-bin
mv msk-bin <bin path\>

How to use

Source the wapper for the needed shell:

source <(msk-bin shellwrapper zsh)

Source the completion for the needed shell:

source <(msk-bin completion zsh)

To enter a new context:

msk context (or ctx)

To enter a new namespace:

msk namespace (or ns)

You can define some alias for convinience, for example:

alias kns="msk namespace"
alias kctx="msk context"

To do

  • allow to call 1 specific context
  • clean old contexts
  • context completion
  • tests