From 8f28841fef82f01a4c586f955157b94e9b0a4aaa Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Fri, 12 Jul 2024 14:56:34 +0200 Subject: [PATCH] fix(shell/zsh): use variables in the zshrc Signed-off-by: Matej Focko --- roles/user/shell/zsh/templates/zshrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/user/shell/zsh/templates/zshrc b/roles/user/shell/zsh/templates/zshrc index bb5353e..13017d1 100644 --- a/roles/user/shell/zsh/templates/zshrc +++ b/roles/user/shell/zsh/templates/zshrc @@ -75,11 +75,11 @@ function bwu() { alias bwl='export BW_SESSION=' -function bwrh() { +function bwpublic() { export BITWARDENCLI_APPDATA_DIR="$HOME/.config/Bitwarden CLI/vault.bitwarden.com" } function bwvps() { - export BITWARDENCLI_APPDATA_DIR="$HOME/.config/Bitwarden CLI/vault.mfocko.xyz" + export BITWARDENCLI_APPDATA_DIR="$HOME/.config/Bitwarden CLI/{{ vaultwarden_address }}" } bwvps @@ -102,9 +102,9 @@ function gen_passphrase() { } ### HashiCorp Vault ### -export VAULT_ADDR="https://hvault.mfocko.xyz" +export VAULT_ADDR="https://{{ hashicorp_vault_address }}" function hcvu() { - local PASS=$(kdialog --password "Password for HashiCorp Vault @ mfocko.xyz") + local PASS=$(kdialog --password "Password for HashiCorp Vault @ {{ hashicorp_vault_address }}") vault login -method=userpass -no-print username=$(whoami) password=$PASS }