1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
3776b1349f zsh: prompt conditions 2024-09-07 10:05:09 +02:00
f27b9d0599 zsh: ansible aliases 2024-09-07 10:04:59 +02:00
2 changed files with 7 additions and 1 deletions

View file

@ -55,3 +55,9 @@ alias kubegen='kubectl create --dry-run=client -oyaml'
alias k=kubectl alias k=kubectl
alias kg='kubectl get' alias kg='kubectl get'
alias kctx='kubectl config use-context' alias kctx='kubectl config use-context'
alias ap='ansible-playbook --vault-password-file <(gopass show --password metrans/ansible-vault) --ask-become-pass'
alias apd='ansible-playbook --vault-password-file <(gopass show --password metrans/ansible-vault) --ask-become-pass --check --diff'
alias api='ansible-playbook -i inventory --vault-password-file <(gopass show --password metrans/ansible-vault) --ask-become-pass'
alias apid='ansible-playbook -i inventory --vault-password-file <(gopass show --password metrans/ansible-vault) --ask-become-pass --check --diff'
alias an='ansible --become --vault-password-file <(gopass show --password metrans/ansible-vault) --ask-become-pass'

View file

@ -110,7 +110,7 @@
# Blue current directory. # Blue current directory.
typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|k9s|flux|trivy' typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|k9s|flux|trivy|stern|tkn|argocd'
# Context format when root: user@host. The first part white, the rest grey. # Context format when root: user@host. The first part white, the rest grey.
typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f" typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f"