mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-01-08 02:36:47 +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 ######
|
##### aliases ######
|
||||||
|
|
||||||
alias atuin_delete='atuin search --delete --search-mode=full-text $1'
|
alias atuin_delete='atuin search --delete --search-mode=full-text'
|
||||||
alias atuin_search='atuin search --search-mode=full-text $1'
|
alias atuin_search='atuin search --search-mode=full-text'
|
||||||
alias bat='bat --style=plain --paging=never --theme=Nord $*'
|
alias bat='bat --style=plain --paging=never --theme=Nord'
|
||||||
alias batdiff='bat --style=changes --paging=never --theme=Nord $*'
|
alias batdiff='bat --style=changes --paging=never --theme=Nord'
|
||||||
alias bkpwd='rm -rf ${PWD}.bak ; cp -a $PWD{,.bak}'
|
alias bkpwd='rm -rf ${PWD}.bak ; cp -a $PWD{,.bak}'
|
||||||
alias chromium-socks='chromium --proxy-server=socks://localhost:3000'
|
alias chromium-socks='chromium --proxy-server=socks://localhost:3000'
|
||||||
alias curlh='curl -sD - -o /dev/null'
|
alias curlh='curl -sD - -o /dev/null'
|
||||||
@ -49,6 +49,8 @@ alias icat='kitten icat --align=left'
|
|||||||
alias idiff='kitten diff'
|
alias idiff='kitten diff'
|
||||||
alias issh='kitten ssh'
|
alias issh='kitten ssh'
|
||||||
alias k=kubectl
|
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 ls='ls --group-directories-first --color=auto --hyperlink=auto'
|
||||||
alias mknamedvenv='mkvirtualenv $(basename $PWD) -r requirements.txt'
|
alias mknamedvenv='mkvirtualenv $(basename $PWD) -r requirements.txt'
|
||||||
alias neovim=nvim
|
alias neovim=nvim
|
||||||
@ -100,6 +102,10 @@ knodes () {
|
|||||||
} | [.name,.type,.karpenter,.capacity,.registered,.initialized] | @tsv'
|
} | [.name,.type,.karpenter,.capacity,.registered,.initialized] | @tsv'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kpretty () {
|
||||||
|
kubectl get -o yaml $* | kubectl neat | bat --language=yaml
|
||||||
|
}
|
||||||
|
|
||||||
siteinfo () {
|
siteinfo () {
|
||||||
local url=$(echo "$1" | sed 's#^https\?://##')
|
local url=$(echo "$1" | sed 's#^https\?://##')
|
||||||
local ip="$(dig +short "$url" | tail -1)"
|
local ip="$(dig +short "$url" | tail -1)"
|
||||||
|
Loading…
Reference in New Issue
Block a user