From 8d069e6d481255bce18dac107bc0a9f484de9d66 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 16 Oct 2024 19:51:54 +0200 Subject: [PATCH] zsh: cleanup dijkstra setup --- dijkstra/.config/zsh/configs/host-setup | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/dijkstra/.config/zsh/configs/host-setup b/dijkstra/.config/zsh/configs/host-setup index e101a7262..0719d3370 100644 --- a/dijkstra/.config/zsh/configs/host-setup +++ b/dijkstra/.config/zsh/configs/host-setup @@ -5,17 +5,31 @@ export KUBECONFIG_DIRS=" /home/luca/Documents/dev/schneiderfilz/sf-ansible/classes/kubeconfig " -alias vault_login_tralios="vault login -address=https://vault.tralios.de -token-only -method=userpass username=luca | tee /home/luca/Documents/dev/tralios/ansible/classes/../.tralios-vault-token" +alias vault_login_tralios=' + vault login \ + -address=https://vault.tralios.de \ + -token-only \ + -method=userpass \ + username=luca | + tee ${HOME}/Documents/dev/tralios/ansible/classes/.tralios-vault-token +' function vault_tralios { export VAULT_ADDR=https://vault.tralios.de - export VAULT_TOKEN=$(cat /home/luca/Documents/dev/tralios/ansible/classes/../.tralios-vault-token) + export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/tralios/ansible/classes/.tralios-vault-token) vault } -alias vault_login_schneiderfilz="VAULT_ADDR=https://vault.schneiderfilz.com vault login -address=https://vault.schneiderfilz.com -token-only -method=userpass username=luca | tee /home/luca/Documents/dev/schneiderfilz/sf-ansible/classes/../.schneiderfilz-vault-token" +alias vault_login_schneiderfilz=' + VAULT_ADDR=https://vault.schneiderfilz.com \ + vault login \ + -address=https://vault.schneiderfilz.com \ + -token-only \ + -method=userpass \ + username=luca | + tee ${HOME}/Documents/dev/schneiderfilz/sf-ansible/classes/.schneiderfilz-vault-token +' function vault_schneiderfilz { export VAULT_ADDR=https://vault.schneiderfilz.com - export VAULT_TOKEN=$(cat /home/luca/Documents/dev/schneiderfilz/sf-ansible/classes/../.schneiderfilz-vault-token) + export VAULT_TOKEN=$(cat ${HOME}/Documents/dev/schneiderfilz/sf-ansible/classes/.schneiderfilz-vault-token) vault $@ } -