feat(user/zsh): use kdialog instead of yad
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
3c4950bcd0
commit
2c9fc903f4
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ eval "$(bw completion --shell zsh); compdef _bw bw;"
|
|||
|
||||
function bwu() {
|
||||
local VAULT=$(basename $BITWARDENCLI_APPDATA_DIR)
|
||||
local PASS=$(yad --text "Master password for Bitwarden Vault @ $VAULT:" --center --button "yad-ok" --entry --hide-text)
|
||||
local PASS=$(kdialog --password "Master password for Bitwarden Vault @ $VAULT")
|
||||
export BW_SESSION=$(bw unlock --raw "$PASS")
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ function gen_passphrase() {
|
|||
### HashiCorp Vault ###
|
||||
export VAULT_ADDR="https://hvault.mfocko.xyz"
|
||||
function hcvu() {
|
||||
local PASS=$(yad --text "Password for HashiCorp Vault @ mfocko.xyz:" --center --button "yad-ok" --entry --hide-text)
|
||||
local PASS=$(kdialog --password "Password for HashiCorp Vault @ mfocko.xyz")
|
||||
vault login -method=userpass -no-print username=$(whoami) password=$PASS
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue