fix(shell/zsh): use variables in the zshrc
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
42aeacb47b
commit
8f28841fef
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue