fix(shell/zsh): use variables in the zshrc

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-07-12 14:56:34 +02:00
parent 42aeacb47b
commit 8f28841fef
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

View file

@ -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
}