Skip to content

Instantly share code, notes, and snippets.

@asabirov
Last active December 18, 2019 23:00
Show Gist options
  • Save asabirov/ca184d588ea2d500d757e6f01061520b to your computer and use it in GitHub Desktop.
Save asabirov/ca184d588ea2d500d757e6f01061520b to your computer and use it in GitHub Desktop.
envs for cka exam
source <(kubectl completion bash)
complete -F __start_kubectl k
alias k='kubectl'
alias kgd='k get deploy'
alias kgp='k get pods'
alias kgn='k get nodes'
alias kgs='k get svc'
alias kge="k get events — sort-by='.metadata.creationTimestamp' |tail -"
function vaml()
{
vim -R -c 'set syntax=yaml' -;
}
# ~/.vimrc
#autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment