From 5c85898837180ebc9ae15ed36d472aec12389349 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Mon, 21 Oct 2024 09:00:35 +0200 Subject: [PATCH] zsh: clean up aliases --- dijkstra/.config/zsh/configs/host-setup | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dijkstra/.config/zsh/configs/host-setup b/dijkstra/.config/zsh/configs/host-setup index 0719d3370..038e5589b 100644 --- a/dijkstra/.config/zsh/configs/host-setup +++ b/dijkstra/.config/zsh/configs/host-setup @@ -11,13 +11,13 @@ alias vault_login_tralios=' -token-only \ -method=userpass \ username=luca | - tee ${HOME}/Documents/dev/tralios/ansible/classes/.tralios-vault-token + tee ${HOME}/Documents/dev/tralios/ansible/.tralios-vault-token +' +alias vault_tralios=' + export VAULT_ADDR=https://vault.tralios.de && + export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/tralios/ansible/.tralios-vault-token) && + vault \ ' -function vault_tralios { - export VAULT_ADDR=https://vault.tralios.de - export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/tralios/ansible/classes/.tralios-vault-token) - vault -} alias vault_login_schneiderfilz=' VAULT_ADDR=https://vault.schneiderfilz.com \ @@ -26,10 +26,10 @@ alias vault_login_schneiderfilz=' -token-only \ -method=userpass \ username=luca | - tee ${HOME}/Documents/dev/schneiderfilz/sf-ansible/classes/.schneiderfilz-vault-token + tee ${HOME}/Documents/dev/schneiderfilz/sf-ansible/.schneiderfilz-vault-token +' +alias vault_schneiderfilz=' + export VAULT_ADDR=https://vault.schneiderfilz.com && + export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/schneiderfilz/sf-ansible/.schneiderfilz-vault-token) && + vault \ ' -function vault_schneiderfilz { - export VAULT_ADDR=https://vault.schneiderfilz.com - export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/schneiderfilz/sf-ansible/classes/.schneiderfilz-vault-token) - vault $@ -}