added hass alias

This commit is contained in:
Jonas Forsberg 2022-03-26 10:06:47 +01:00
parent ffa5a4d088
commit 577295babf
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

1
.alias
View File

@ -6,3 +6,4 @@ alias ls_dotfiels='/usr/bin/git --git-dir=$HOME/.dotfiles ls-tree --full-tree -r
alias gl='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --date=relative' alias gl='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --date=relative'
alias mariadb='kubectl -n mariadb exec -it $(kubectl -n mariadb get pod --selector=app.kubernetes.io/instance=mariadb --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- mysql' alias mariadb='kubectl -n mariadb exec -it $(kubectl -n mariadb get pod --selector=app.kubernetes.io/instance=mariadb --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- mysql'
alias nodered='kubectl -n nodered exec -it $(kubectl -n nodered get pod --selector=app.kubernetes.io/name=node-red --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- bash' alias nodered='kubectl -n nodered exec -it $(kubectl -n nodered get pod --selector=app.kubernetes.io/name=node-red --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- bash'
alias hass='kubectl -n home-assistant exec -it $(kubectl -n home-assistant get pod --selector=app.kubernetes.io/name=home-assistant --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- bash'