Giter Site home page Giter Site logo

idcrook / prezto-kubernetes Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

Kubernetes module for prezto

Home Page: https://github.com/sorin-ionescu/prezto#readme

License: MIT License

Shell 100.00%
kubernetes prezto prezto-contributions zsh zsh-completion zsh-configuration zshrc

prezto-kubernetes's Introduction

prezto-kubernetes

Kubernetes aliases module for prezto. Also loads/caches the zsh completions for kubectl.

Aliases that @idcrook uses for kubernetes, originally in BASH

Install

To use, the module directory needs to be found in pmodule-dirs, so e.g. in zpreztorc:

 # Add additional directories to load prezto modules from
-# zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib
+zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib

It could also be placed in /contrib or /modules which are already in default pmodule-dirs.

cd $HOME/.zprezto-contrib
git clone https://github.com/idcrook/prezto-kubernetes.git kubernetes
# or alternatively
git submodule add https://github.com/idcrook/prezto-kubernetes.git kubernetes

Configure

The module itself (above cloned to be named kubernetes) needs to be explicitly loaded in ${ZDOTDIR:-$HOME}/.zpreztorc

Modules are loaded via zstyle ':prezto:load' pmodule

  ...
       'utility' \
       'completion' \
       'kubernetes' \
  ...

In mine, I've loaded it after completion module.

Aliases

  • kbk kubectl base
  • kbn with kube-system namespace

Subcommand aliases

  • kbkd describe
  • kbkg get
  • kbkl logs
  • kbklf logs --follow

Acknowledgments

Inspired by and based on prezto-contrib/kubernetes at master · belak/prezto-contrib

prezto-kubernetes's People

Contributors

idcrook avatar

Watchers

 avatar

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.