Skip to content

Instantly share code, notes, and snippets.

@yogendra
Last active May 23, 2021 09:41
Show Gist options
  • Select an option

  • Save yogendra/56e6d36e18f9b93236341c7e97afa56a to your computer and use it in GitHub Desktop.

Select an option

Save yogendra/56e6d36e18f9b93236341c7e97afa56a to your computer and use it in GitHub Desktop.
Kubernetes Environment Helpers
" Install minimal vimrc using:
" wget -q https://yogendra.me/minimal-vimrc -O ~/.vimrc
let g:netrw_liststyle=3
set autoindent
set cursorcolumn
set cursorline
set expandtab
set history=50
set hlsearch
set ignorecase
set incsearch
set linebreak
set list
set nobackup
set noswapfile
set nowb
set nowrap
set nowritebackup
set number
set ruler
set scrolloff=8
set shiftround
set shiftwidth=2
set showcmd
set sidescroll=1
set sidescrolloff=15
set smartcase
set smartindent
set tabstop=2
syntax enable

K8s workspace helper

This gist is simple/enough config (vim and shell) for working on any k8s.

Requirement

  • kubectl
  • wget
  • bash or sh

How to use?

  • Install vimrc + profile
    wget -qO- https://yogendra.me/k8s-workspace | bash
    
  • Only vimrc
    wget -qO- https://yogendra.me/minimal-vimrc >> ~/.vimrc
    
  • Only profile
    wget -qO- https://yogendra.me/k8s-profile >> ~/.vimrc
    
alias k=kubectl
source <(kubectl completion bash)
complete -F __start_kubectl k
#!/usr/bin/env sh
set -e
wget -qO- https://yogendra.me/k8s-profile >> ~/.profile
wget -qO- https://yogendra.me/minimal-vimrc >> ~/.vimrc
source ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment