kubie icon indicating copy to clipboard operation
kubie copied to clipboard

spawn last shell as default command

Open breuerfelix opened this issue 4 years ago • 0 comments

kubie ctx spawns a shell with the current context (or prompt a fzf if you got multiple) and uses the last used namespace automatically.

kubie shows the help.

My typical development flow is using kubie ctx <context> (context is the same most of the time) to get into a shell. So i made myself a short alias to kubie ctx <context> in order to jump fast into my shell but then i need another alias for kubie or even kubie ns to switch my namespace.

so my idea: what about just executing kubie spawns a shell with the last context and namespace you used? or shows help if there is not last context? that would mean you only have to alias kubie to kci for example.
run kci -> get into shell. run kci ns <whatever> -> new namespace. run kci ctx <whatever> get into another context, and also get into that context the next time you just run kci.

what do you think about that idea ?

breuerfelix avatar Jan 29 '21 11:01 breuerfelix