Last active
January 25, 2021 08:12
-
-
Save judavi/c0f4fe8ed3490aa3ec0cc72908f2cb2a to your computer and use it in GitHub Desktop.
Resources CKAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set ts=2 | |
set sts=2 | |
set sw=2 | |
filetype off | |
filetype plugin indent on | |
syntax on | |
set expandtab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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