Git Product home page Git Product logo

oh-my-zsh-openshift's Introduction

Note that lately zsh completion should work out of the box with openshift origin, you just have to do a source <(oc completion zsh) from your shell and it should give you completion. There is still things that this plugin do better in some cases but down the line the effort should be focused on improving the completion inside openshift-origin

Synopsis

This is a oh-my-zsh plugin to provide shell completion of the OpenShift v3 commands with ZSH.

oh-my-zsh is a zsh framworks making it easy to customise your ZSH Shell. You can find out more about it here :

http://ohmyz.sh/

Motivation

There is a bash completion in the openshift source that are autogenerated by OpenShift but I never got it to work with bashcompctl or even with bash directly under MacosX so I wrote my own from scratch.

Installation

Install oh-my-zsh if you haven't it installed following this :

https://github.com/robbyrussell/oh-my-zsh/#basic-installation

and execute this :

$ git clone https://github.com/chmouel/oh-my-zsh-openshift ~/.oh-my-zsh/custom/plugins/oc

you can edit your ~/.zshrc and add oc to the plugins variable like for example :

plugins=(oc git)

Installation without oh-myzsh

I actually don't use oh-my-zsh so if you want to use the vanilla zsh you can just checkout this to a directory like ~/.zsh/oc :

$ mkdir -p ~/.zsh/;git clone https://github.com/chmouel/oh-my-zsh-openshift ~/.zsh/oc

Configure (after install both with and without oh-my-zsh)

In your ~/.zshrc put thing like this :

typeset -U fpath  # Optinal for oh-my-zsh users
fpath=(~/.zsh/oc $fpath)
autoload -U compinit
compinit -i

Authors

License

APL 1.0 -- http://opensource.org/licenses/APL-1.0

oh-my-zsh-openshift's People

Contributors

chmouel avatar vbehar avatar yannmoisan avatar aemonge avatar gshipley avatar

Stargazers

Jean-Baptiste Mestelan avatar Mohammad Dahab avatar  avatar Bezuglov Svyatoslav avatar Moe Jafari avatar  avatar Eugen Waldschmidt avatar akiyamn avatar  avatar Tass avatar Mancubus avatar MenkeTechnologies avatar  avatar Ryan avatar Kevin Chung avatar Hagen Kuehn avatar Joel Sheppard avatar  avatar Alex Ji avatar Janek Schleicher avatar Bruno Andrade avatar Batuhan Apaydın avatar  avatar Parham Alvani avatar TuNA avatar Radim Hopp avatar Samúel Jón Gunnarsson avatar aland-zhang avatar Chris Laprun avatar John Deng avatar Steven Tobias avatar Kamesh Sampath avatar Frank Zosso avatar Vncit avatar James Zhao avatar Maurizio Pillitu avatar Rene Zbinden avatar Jean-Francois Chevrette avatar Antonio Gallego avatar Imran Hayder  avatar Sam Padgett avatar Anders Sveen avatar

Watchers

 avatar  avatar James Cloos avatar David Strejc avatar  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.