hide node warnings in bw functions

This commit is contained in:
Gabriel Augendre 2024-02-18 16:18:04 +01:00
parent 0342ab1ed7
commit e5bf69149d
4 changed files with 4 additions and 0 deletions

View file

@ -1,4 +1,5 @@
function chezmoiapply
set -x NODE_OPTIONS "--no-deprecation"
bwunlock
chezmoi apply
end

View file

@ -1,4 +1,5 @@
function chezmoiupdate
set -x NODE_OPTIONS "--no-deprecation"
bwunlock
chezmoi update
end

View file

@ -1,4 +1,5 @@
function fetchkeys
set -x NODE_OPTIONS "--no-deprecation"
bwunlock
set key_item (bw list items --search "SSH Main" | jq ".[0]" --raw-output)
set key_item_id (echo $key_item | jq ".id" --raw-output)

View file

@ -1,4 +1,5 @@
function upgrade --wraps=topgrade
set -x NODE_OPTIONS "--no-deprecation"
bwunlock
{{- if get . "sudo" }}
sudo ls >/dev/null