Moved bw functions to .functions.zsh; temp fix for punycode deprecation

This commit is contained in:
Random936 2025-01-07 14:37:09 -08:00
parent ae35363090
commit a18acc0744
2 changed files with 13 additions and 3 deletions

View File

@ -17,3 +17,16 @@ bw-init() {
bw unlock --raw > $HOME/.bw_session
bw-load
}
bw-copy() {
bw-load && NODE_OPTIONS="--no-deprecation" bw get password "$1" | xsel --clipboard -i
}
bw-clear() {
echo -n "" | xsel --clipboard
}
bw-ssh() {
pass=$(bw-load && NODE_OPTIONS="--no-deprecation" bw get password "$1")
sshpass -p "$pass" ssh ${@:2}
}

View File

@ -47,9 +47,6 @@
function ..... { cd ../../../../.. }
function ...... { cd ../../../../../.. }
function ....... { cd ../../../../../../.. }
function bw-copy { bw-load && bw get password "$1" | xsel --clipboard -i }
function bw-clear { echo -n "" | xsel --clipboard }
function bw-ssh { sshpass -p "$(bw-load && bw get password "$1")" ssh ''${@:2} }
if [[ "$(uname)" == "Darwin" ]]; then
source <(/opt/homebrew/bin/brew shellenv)