Skip to content

Instantly share code, notes, and snippets.

@judavi
Last active January 25, 2021 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judavi/c0f4fe8ed3490aa3ec0cc72908f2cb2a to your computer and use it in GitHub Desktop.
Save judavi/c0f4fe8ed3490aa3ec0cc72908f2cb2a to your computer and use it in GitHub Desktop.
Resources CKAD
" Yaml file handling
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
filetype plugin indent on
autocmd FileType yaml setl indentkeys-=<:>
" Copy paste with ctr+c, ctr+v, etc
:behave mswin
:set clipboard=unnamedplus
:smap <Del> <C-g>"_d
:smap <C-c> <C-g>y
:smap <C-x> <C-g>x
:imap <C-v> <Esc>pi
:smap <C-v> <C-g>p
:smap <Tab> <C-g>1>
:smap <S-Tab> <C-g>1<
set ts=2
set sts=2
set sw=2
filetype off
filetype plugin indent on
syntax on
set expandtab
sudo apt-get install bash-completion
source ~/.bashrc
source <(kubectl completion bash)
kubectl completion bash
alias k=kubectl
complete -F __start_kubectl k # to make it work with the alias k
alias kn='kubectl config set-context --current --namespace '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment