mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-01-06 20:06:46 +00:00
[.zshrc] Add new kubernetes aliases/functions
This commit is contained in:
parent
68c4e18c45
commit
a231d514e3
14
.zshrc
14
.zshrc
@ -31,10 +31,10 @@ PROMPT_EOL_MARK=''
|
||||
|
||||
##### aliases ######
|
||||
|
||||
alias atuin_delete='atuin search --delete --search-mode=full-text $1'
|
||||
alias atuin_search='atuin search --search-mode=full-text $1'
|
||||
alias bat='bat --style=plain --paging=never --theme=Nord $*'
|
||||
alias batdiff='bat --style=changes --paging=never --theme=Nord $*'
|
||||
alias atuin_delete='atuin search --delete --search-mode=full-text'
|
||||
alias atuin_search='atuin search --search-mode=full-text'
|
||||
alias bat='bat --style=plain --paging=never --theme=Nord'
|
||||
alias batdiff='bat --style=changes --paging=never --theme=Nord'
|
||||
alias bkpwd='rm -rf ${PWD}.bak ; cp -a $PWD{,.bak}'
|
||||
alias chromium-socks='chromium --proxy-server=socks://localhost:3000'
|
||||
alias curlh='curl -sD - -o /dev/null'
|
||||
@ -49,6 +49,8 @@ alias icat='kitten icat --align=left'
|
||||
alias idiff='kitten diff'
|
||||
alias issh='kitten ssh'
|
||||
alias k=kubectl
|
||||
alias kgy='kubectl get -o yaml'
|
||||
alias kready='kubectl get --raw="/readyz?verbose"'
|
||||
alias ls='ls --group-directories-first --color=auto --hyperlink=auto'
|
||||
alias mknamedvenv='mkvirtualenv $(basename $PWD) -r requirements.txt'
|
||||
alias neovim=nvim
|
||||
@ -100,6 +102,10 @@ knodes () {
|
||||
} | [.name,.type,.karpenter,.capacity,.registered,.initialized] | @tsv'
|
||||
}
|
||||
|
||||
kpretty () {
|
||||
kubectl get -o yaml $* | kubectl neat | bat --language=yaml
|
||||
}
|
||||
|
||||
siteinfo () {
|
||||
local url=$(echo "$1" | sed 's#^https\?://##')
|
||||
local ip="$(dig +short "$url" | tail -1)"
|
||||
|
Loading…
Reference in New Issue
Block a user